EAPOL auth: Avoid recursive wpa_sm_step() on WPA_DEAUTH case
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 28 Aug 2015 13:32:14 +0000 (16:32 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 28 Aug 2015 13:32:14 +0000 (16:32 +0300)
commit43f49c3788fc6cdc6d4f96c7d9c9c2b4ff10f297
tree96969ef9511f59f5cd13d049d2338153e3324b9b
parentdee202024370ff6b5a937322b090680f611c36aa
EAPOL auth: Avoid recursive wpa_sm_step() on WPA_DEAUTH case

It was possible for wpa_auth_sm_event(WPA_DEAUTH) to be called from
wpa_sm_step() iteration in the case the EAPOL authenticator state
machine ended up requesting the station to be disconnected. This
resulted in unnecessary recursive call to wpa_sm_step(). Avoid this by
using the already running call to process the state change.

It was possible to hit this sequence in the hwsim test case
ap_wpa2_eap_eke_server_oom.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/wpa_auth.c