• Johannes Berg's avatar
    mac80211: fix deauth race · 29165e4c
    Johannes Berg authored
    When userspace requests a deauth while the
    authentication work is pending in the auth
    (not probe) state, we do not properly abort
    the work and then things get confused.
    
    Fix that and also improve the checks here
    to include the correct virtual interface,
    just in case two virtual interfaces would
    ever try to connect to the same BSS.
    
    Also fix a bug -- need to use list_del_rcu
    instead of just list_del to free a work
    item.
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    29165e4c
mlme.c 55.8 KB