fix(wifi): fix bug in 'esp_wifi_deauthenticate_internal' and other improvements

This commit is contained in:
Sarvesh Bodakhe
2024-03-14 11:24:26 +05:30
parent e5059dffec
commit 344c5d1fce
2 changed files with 2 additions and 3 deletions

View File

@ -1443,8 +1443,7 @@ SM_STATE(WPA_PTK, AUTHENTICATION2)
if (os_get_random(sm->ANonce, WPA_NONCE_LEN)) {
wpa_printf( MSG_ERROR, "WPA: Failed to get random data for "
"ANonce.");
wpa_sta_disconnect(sm->wpa_auth, sm->addr,
WLAN_REASON_4WAY_HANDSHAKE_TIMEOUT);
sm->Disconnect = true;
return;
}
wpa_hexdump(MSG_DEBUG, "WPA: Assign ANonce", sm->ANonce,