• Johannes Berg's avatar
    nl80211/mac80211: support full station state in AP mode · d582cffb
    Johannes Berg authored
    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: default avatarJohannes Berg <johannes.berg@intel.com>
    d582cffb
main.c 30.7 KB