diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2017-02-21 10:49:16 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2017-02-21 10:51:48 (GMT) |
commit | 6aea02e579503adca9f4000b063a83ec4338724d (patch) | |
tree | e742abea49fe7c31791551eff81a613fb8a938a2 /wpa_supplicant/sme.c | |
parent | ba9774bd76fa84106fa0865015df621489c62fd8 (diff) | |
download | hostap-6aea02e579503adca9f4000b063a83ec4338724d.zip hostap-6aea02e579503adca9f4000b063a83ec4338724d.tar.gz hostap-6aea02e579503adca9f4000b063a83ec4338724d.tar.bz2 |
SME: Clear portValid on starting authentication to fix FILS
The ft_completed for FILS authentication case in
wpa_supplicant_event_assoc() depends on something having cleared
portValid so that setting it TRUE ends up authorizing the port. This
clearing part did not happen when using FILS authentication during a
reassociation within an ESS. Fix this by clearing portValid in
sme_send_authentication() just before the keys are cleared (i.e., the
old connection would not be usable anyway).
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r-- | wpa_supplicant/sme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index cf16bf7..b57f167 100644 --- a/wpa_supplicant/sme.c +++ b/wpa_supplicant/sme.c @@ -572,6 +572,7 @@ static void sme_send_authentication(struct wpa_supplicant *wpa_s, " (SSID='%s' freq=%d MHz)", MAC2STR(params.bssid), wpa_ssid_txt(params.ssid, params.ssid_len), params.freq); + eapol_sm_notify_portValid(wpa_s->eapol, FALSE); wpa_clear_keys(wpa_s, bss->bssid); wpa_supplicant_set_state(wpa_s, WPA_AUTHENTICATING); if (old_ssid != wpa_s->current_ssid) |