From 2e8ebdc0fc29e9d91a7567c04a9d963175c9d7a8 Mon Sep 17 00:00:00 2001 From: Shyamal Khachane Date: Thu, 15 Dec 2022 14:15:10 +0530 Subject: [PATCH] wpa_supplicant: Clear current pmksa before generating RSN IE Also update wifi libs with below changes - - Fix reason codes for Invalid PMKID - Fix handling of Assoc Resp status codes for Station Closes https://github.com/espressif/esp-idf/issues/10364 --- components/esp_wifi/lib | 2 +- components/wpa_supplicant/src/rsn_supp/wpa.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index cb98c5d42bd..64f27680849 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit cb98c5d42bd6e80924c0bcce8347a6feb98038d3 +Subproject commit 64f27680849d9866eab711b1ac70a18f41f1d470 diff --git a/components/wpa_supplicant/src/rsn_supp/wpa.c b/components/wpa_supplicant/src/rsn_supp/wpa.c index ce539432d90..b924b11903c 100644 --- a/components/wpa_supplicant/src/rsn_supp/wpa.c +++ b/components/wpa_supplicant/src/rsn_supp/wpa.c @@ -2448,6 +2448,7 @@ int wpa_set_bss(char *macddr, char * bssid, u8 pairwise_cipher, u8 group_cipher, memcpy(sm->bssid, bssid, ETH_ALEN); sm->ap_notify_completed_rsne = esp_wifi_sta_is_ap_notify_completed_rsne_internal(); sm->use_ext_key_id = (sm->proto == WPA_PROTO_WPA); + pmksa_cache_clear_current(sm); if (sm->key_mgmt == WPA_KEY_MGMT_SAE || sm->key_mgmt == WPA_KEY_MGMT_OWE ||