fix(esp_wifi): Backport some fixes to v5.3

1. Fix issue of station PMF not getting reset when disconnecing from PMF connection
2. Fix a memory leak that occurs when the SAE connection is interrupted
3. Drop any received auth responses that use a different algorithm than the one currently in use
This commit is contained in:
Shyamal Khachane
2024-06-20 14:36:44 +05:30
parent 1056a02ba9
commit 9e95b9b29c
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,6 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
case WIFI_REASON_ASSOC_FAIL: case WIFI_REASON_ASSOC_FAIL:
case WIFI_REASON_CONNECTION_FAIL: case WIFI_REASON_CONNECTION_FAIL:
case WIFI_REASON_HANDSHAKE_TIMEOUT: case WIFI_REASON_HANDSHAKE_TIMEOUT:
esp_wpa3_free_sae_data();
wpa_sta_clear_curr_pmksa(); wpa_sta_clear_curr_pmksa();
wpa_sm_notify_disassoc(&gWpaSm); wpa_sm_notify_disassoc(&gWpaSm);
break; break;
@ -308,6 +307,7 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
owe_deinit(); owe_deinit();
#endif /* CONFIG_OWE_STA */ #endif /* CONFIG_OWE_STA */
esp_wpa3_free_sae_data();
supplicant_sta_disconn_handler(reason_code); supplicant_sta_disconn_handler(reason_code);
} }