]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/nl80211.c
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)
commitd582cffbcd04eae0bd8a83b05648bfd54bfd21c9
treed6832e35977669df448c196db95ecf6b4e399c2b
parentdfa674da1807bc8fb782fc38a7d48c8ea3168eb7
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