]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SME: Clear possibly used WPA/RSN IE for new connection
authorJouni Malinen <jouni@qca.qualcomm.com>
Sat, 22 Oct 2016 19:48:25 +0000 (22:48 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Oct 2016 19:55:27 +0000 (22:55 +0300)
This was already done in the case SME in the driver is used, but the SME
code path was resetting the local WPA/RSN IE only for association. While
that was fine for existing use cases, FILS needs a new RSN IE to be set
for PMKSA caching case in Authentication frames, so clear the local IE
before starting new authentication.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/sme.c

index d830fca99e9b28a318085a4bb3e1fa191c8ade12..477b4cc10422b2b9f315341b948dc1688655c7a2 100644 (file)
@@ -650,6 +650,10 @@ static void sme_auth_start_cb(struct wpa_radio_work *work, int deinit)
                return;
        }
 
+       /* Starting new connection, so clear the possibly used WPA IE from the
+        * previous association. */
+       wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0);
+
        sme_send_authentication(wpa_s, cwork->bss, cwork->ssid, 1);
 }