]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix ap_sta_disconnect() to clear EAPOL/WPA authenticator state
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 25 Jan 2012 20:32:58 +0000 (22:32 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 25 Jan 2012 20:32:58 +0000 (22:32 +0200)
commitceb997f394773075c292e81c69cdd24717e7d1d5
tree053f58fbb7a3bb9f7fe129e8f805918ab2b1c988
parent1e49ccebf7f655aca3b3f887aa43369f9b61bf14
Fix ap_sta_disconnect() to clear EAPOL/WPA authenticator state

Number of places in hostapd use ap_sta_disconnect() instead of
ap_sta_disassociate() or ap_sta_deauthenticate(). There are some
differences between these functions, e.g., in the area how quickly
the EAPOL state machines get deinitialized. This can result in
somewhat unexpected events since the EAPOL/WPA authenticator
state machines could remain running after deauthentication.

Address this by forcing EAPOL/WPA authenticator state machines
to disabled state whenever ap_sta_disconnect() is called instead
of waiting for the deauthentication callback or other timeout
to clear the STA.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/sta_info.c