From 9efdcd52cc65cdeba5a4f03283223b259740c613 Mon Sep 17 00:00:00 2001 From: Sarvesh Bodakhe Date: Thu, 16 May 2024 16:00:21 +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 e0ee52e2b6..5cebf92b39 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit e0ee52e2b664695bbf8d027ea11685f153618745 +Subproject commit 5cebf92b398440266977440db81b0315831aeb41 diff --git a/components/wpa_supplicant/src/ap/wpa_auth.c b/components/wpa_supplicant/src/ap/wpa_auth.c index a9d4987259..e5fa908136 100644 --- a/components/wpa_supplicant/src/ap/wpa_auth.c +++ b/components/wpa_supplicant/src/ap/wpa_auth.c @@ -1357,8 +1357,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,