From: Jouni Malinen Date: Sat, 22 Oct 2016 19:48:25 +0000 (+0300) Subject: SME: Clear possibly used WPA/RSN IE for new connection X-Git-Tag: hostap_2_7~2205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2c55791728d6b07c4bd51490da4bb690a077bf;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c index d830fca99..477b4cc10 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); }