From 8baaeb2fa3276f7419441768b3bbe6a85a96fabe Mon Sep 17 00:00:00 2001 From: Sarvesh Bodakhe Date: Wed, 15 Nov 2023 08:27:49 +0530 Subject: [PATCH] fix(wifi): fix bug in 'esp_wifi_deauthenticate_internal' and other improvements --- components/esp_wifi/lib | 2 +- components/wpa_supplicant/src/ap/wpa_auth.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 5b70cdbe16..6d324abd92 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 5b70cdbe16fe862925a50f9a5a251e7aa4b69f43 +Subproject commit 6d324abd923bf4895099680956c817e63005ce4f diff --git a/components/wpa_supplicant/src/ap/wpa_auth.c b/components/wpa_supplicant/src/ap/wpa_auth.c index 713a384bb7..9b380a4b1a 100644 --- a/components/wpa_supplicant/src/ap/wpa_auth.c +++ b/components/wpa_supplicant/src/ap/wpa_auth.c @@ -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,