Merge branch 'bugfix/fix_softap_wpa3_loop' into 'master'

Fix infinite loop in PMK mismatch case in WPA3 SoftAP

Closes WIFI-5627

See merge request espressif/esp-idf!22954
This commit is contained in:
Jiang Jiang Jian 2023-03-30 14:42:00 +08:00
commit 74c151df44

View File

@ -1622,7 +1622,8 @@ SM_STATE(WPA_PTK, PTKCALCNEGOTIATING)
wpa_printf( MSG_DEBUG, "mic verify fail, pmk=%p", pmk);
}
if (!wpa_key_mgmt_wpa_psk(sm->wpa_key_mgmt)){
if (!wpa_key_mgmt_wpa_psk(sm->wpa_key_mgmt) ||
wpa_key_mgmt_sae(sm->wpa_key_mgmt)) {
wpa_printf( MSG_DEBUG, "wpa_key_mgmt=%x", sm->wpa_key_mgmt);
break;
}