public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Patrick Bosch <patrick.d.bosch@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: MAC acl equivalent to iwpriv for nl80211 drivers
Date: Wed, 12 Nov 2014 15:00:23 -0600	[thread overview]
Message-ID: <1415826023.28424.7.camel@dcbw.local> (raw)
In-Reply-To: <loom.20141112T152857-158@post.gmane.org>

On Wed, 2014-11-12 at 14:31 +0000, Patrick Bosch wrote:
> Hello everybody
> 
> I hope I do post this in the correct mailing list.
> 
> My problem is the following:
> 
> I want to add/delete new MAC addresses to the acl without restarting
> anything. Without restarting I mean that there shouldn't be a time frame
> where no beacon frames are sent. This happened to me on an OpenWRT
> router and I want to avoid this effect.

This would be something that should be done with hostapd or whatever is
actually managing the AP mode.  It looks like the procedure here is to
update your "deny MAC" and "accept MAC" files, then issue the
hostapd_cli command "SET deny_mac_file /path/to/deny" and "SET
accept_mac_file /path/to/accept" commands, which will immediately
disconnect any clients that aren't in the ACL, without restarting
anything.

> It seems to me that iwpriv offers exactly this functionality. You can add
> a list of MAC addresses and define how they should be handled. Iw
> doesn't seem to offer this option. Is there any other way to get this
> functionality? 

iwpriv is simply a driver passthrough, it doesn't offer any
functionality other than "push this random data to the driver" in a
slightly formatted way.  The options are defined by the driver itself.
The upstream kernel wifi community is trying very hard to *not* allow
this sort of functionality, at least as it has been used in the past
with iwpriv, since almost the stuff iwpriv used to do, can be done in a
more standard way with 'iw', or should be done elsewhere
(wpa_supplicant, hostapd).

Dan

> Another question would be, if there is a way to forge management
> frames, similar to what hostapd_cli can do for deauthentication and
> disassociation frames? 
> 
> Any help is appreciated!


      reply	other threads:[~2014-11-12 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12 14:31 MAC acl equivalent to iwpriv for nl80211 drivers Patrick Bosch
2014-11-12 21:00 ` Dan Williams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1415826023.28424.7.camel@dcbw.local \
    --to=dcbw@redhat.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=patrick.d.bosch@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox