]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant_i.h
Clear external eapSuccess setting in driver-authorized cases
authorJouni Malinen <jouni@codeaurora.org>
Wed, 7 Aug 2019 08:51:44 +0000 (11:51 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Aug 2019 16:24:06 +0000 (19:24 +0300)
commitb0b25c5bbc52a6af3b1cbb38b125ad659e90f446
treee575b8b74c76bc69dc903be07aa7e2e359db5a97
parentfa1d5ec182f7102b6d9d57685477de457c6b0b9f
Clear external eapSuccess setting in driver-authorized cases

The conditions for the eapol_sm_notify_eap_success(FALSE) calls did not
cover the case where eapol_sm_notify_eap_success(TRUE) had been called
based on offloaded 4-way handshake and driver notification of
authorization in wpa_supplicant_event_port_authorized(). This could
result in eapSuccess and altSuccess state machine variables being left
TRUE when roaming to another BSS and that results in EAP failure if the
following roaming case does not get fully authorized through the driver
offload.

Fix this by clearing eapSuccess/altSuccess when processing a new
association (including roaming) event and also when disconnecting from
the network.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant_i.h