aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-10-22 19:48:25 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-22 19:55:27 (GMT)
commit2c2c55791728d6b07c4bd51490da4bb690a077bf (patch)
treef40a45c97fb4f296fea49f9bc51400043d21d378 /wpa_supplicant/sme.c
parent0866ed004de6c3dbe5d9adcf555692393006d987 (diff)
downloadhostap-2c2c55791728d6b07c4bd51490da4bb690a077bf.zip
hostap-2c2c55791728d6b07c4bd51490da4bb690a077bf.tar.gz
hostap-2c2c55791728d6b07c4bd51490da4bb690a077bf.tar.bz2
SME: Clear possibly used WPA/RSN IE for new connection
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>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index d830fca..477b4cc 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -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);
}