]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: Clear portValid on starting authentication to fix FILS
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 21 Feb 2017 10:49:16 +0000 (12:49 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 21 Feb 2017 10:51:48 +0000 (12:51 +0200)
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>
wpa_supplicant/sme.c

index cf16bf7c5f5598222f012f57ac3e043cb14b19df..b57f167b1264fab67f40e46407074cda2808b0bd 100644 (file)
@@ -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)