]> 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)
commit69337f068fac5aae292b753902b0c46ad1061936
treed6832e35977669df448c196db95ecf6b4e399c2b
parent1a2c728fe10ef56080e93e390ce02723f16e7d5e
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