From aa78c85a050907399ca5822e5cc845a7056972d9 Mon Sep 17 00:00:00 2001 From: Shyamal Khachane Date: Fri, 23 Dec 2022 16:56:16 +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 --- 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 d97259c9ee..82a98b69b3 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit d97259c9ee8f215f992ebb3d7e9406286a7c3e5c +Subproject commit 82a98b69b3c6b327e0d67c7f33af5e08d04977f1 diff --git a/components/wpa_supplicant/src/rsn_supp/wpa.c b/components/wpa_supplicant/src/rsn_supp/wpa.c index 8722863345..27ca0fca05 100644 --- a/components/wpa_supplicant/src/rsn_supp/wpa.c +++ b/components/wpa_supplicant/src/rsn_supp/wpa.c @@ -2349,6 +2349,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 || is_wpa2_enterprise_connection()) {