]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211/mac80211: support full station state in AP mode
authorJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 15:53:44 +0000 (17:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:40 +0000 (13:01 +0100)
commitcd06e0f1f08ac043646800b8e0537cef9fe344a6
treed6832e35977669df448c196db95ecf6b4e399c2b
parenta7915b471b81333c39634e3aae905ae9261fa12f
nl80211/mac80211: support full station state in AP mode

Today, stations are added already associated. That is
inefficient if, for example, the driver has no room
for stations any more because then the station will
go through the entire auth/assoc handshake, only to
be kicked out afterwards.

To address this a bit better, at least with drivers
using the new station state callback, allow hostapd
to add stations in unauthenticated mode, just after
receiving the AUTH frame, before even replying. Thus
if there's no more space at that point, it can send
a negative auth frame back. It still needs to handle
later state transition errors though, of course.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/mac80211/cfg.c
net/mac80211/main.c
net/wireless/nl80211.c