Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_softap_wpa3_loop' into 'master'
Browse files Browse the repository at this point in the history
Fix infinite loop in PMK mismatch case in WPA3 SoftAP

Closes WIFI-5627

See merge request espressif/esp-idf!22954
  • Loading branch information
jack0c committed Mar 30, 2023
2 parents 6fcb8b3 + 7ee27bc commit 74c151d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/wpa_supplicant/src/ap/wpa_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 74c151d

Please sign in to comment.