Skip to content

Commit 9e95b9b

Browse files
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
1 parent 1056a02 commit 9e95b9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_wpa_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
294294
case WIFI_REASON_ASSOC_FAIL:
295295
case WIFI_REASON_CONNECTION_FAIL:
296296
case WIFI_REASON_HANDSHAKE_TIMEOUT:
297-
esp_wpa3_free_sae_data();
298297
wpa_sta_clear_curr_pmksa();
299298
wpa_sm_notify_disassoc(&gWpaSm);
300299
break;
@@ -308,6 +307,7 @@ static void wpa_sta_disconnected_cb(uint8_t reason_code)
308307
owe_deinit();
309308
#endif /* CONFIG_OWE_STA */
310309

310+
esp_wpa3_free_sae_data();
311311
supplicant_sta_disconn_handler(reason_code);
312312
}
313313

0 commit comments

Comments
 (0)