]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
Decrement GKeyDoneStations in WPA authenticator when STA is freed
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 23 Mar 2011 15:00:18 +0000 (17:00 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 23 Mar 2011 15:00:18 +0000 (17:00 +0200)
commit2ade8ef29611bfa4d655fa5f7a68ccccefeb38e7
treeaff1d622e982a8a4ac68f8cb7ebe971f82fd84e7
parentef985058f48edb47411aacfbf9e95b7a229bc77a
Decrement GKeyDoneStations in WPA authenticator when STA is freed

If the STA to be freed is still included in GKeyDoneStations count,
decrement the count when the STA is freed. This does not happen in
AP mode since there is enough time to go through the authenticator
state machine to clear the STA. However, in the current RSN IBSS
implementation, the authenticator state for the STA is freed in a
way that does not allow the state machine to go through the clearing.
To address this, make sure that wpa_free_sta_sm() decrements the
GKeyDoneStations count if the STA happened to be in the process of
GTK rekeying.
src/ap/wpa_auth.c