public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* MAC acl equivalent to iwpriv for nl80211 drivers
@ 2014-11-12 14:31 Patrick Bosch
  2014-11-12 21:00 ` Dan Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Bosch @ 2014-11-12 14:31 UTC (permalink / raw)
  To: linux-wireless

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.

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? 

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!

Kind regards
Patrick



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: MAC acl equivalent to iwpriv for nl80211 drivers
  2014-11-12 14:31 MAC acl equivalent to iwpriv for nl80211 drivers Patrick Bosch
@ 2014-11-12 21:00 ` Dan Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2014-11-12 21:00 UTC (permalink / raw)
  To: Patrick Bosch; +Cc: linux-wireless

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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-12 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 14:31 MAC acl equivalent to iwpriv for nl80211 drivers Patrick Bosch
2014-11-12 21:00 ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox