From 47e8de1d4d65a2a950cd7e851cecbcaa5b46a5db Mon Sep 17 00:00:00 2001 From: jgujarathi Date: Fri, 27 Oct 2023 10:26:27 +0530 Subject: [PATCH] fix(esp_wifi): Add more descriptive reasons for disconnect Adds 3 more ddisconnect reasons in case of No AP found. 1. REASON_NO_AP_FOUND_IN_RSSI_THRESHOLD : AP rejected because it did not meet rssi threshold. 2. REASON_NO_AP_FOUND_IN_AUTHMODE THRESHOLD : AP rejected because it did not meet security threshold. 3. REASON_NO_AP_FOUND_WITH_COMPATIBLE_ SECURITY : AP rejected because of incompatible security configuration. These situations could include -- bss offerring WEP, but our password is not WEP compliant, -- Encrypted AP bss but we have no password config set. -- AP is Enterprise but we have not setup enterprise config and vice versa Closes https://github.com/espressif/esp-idf/issues/5957 --- components/esp_wifi/include/esp_wifi_types.h | 3 +++ components/esp_wifi/lib | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_wifi_types.h b/components/esp_wifi/include/esp_wifi_types.h index 8500fb3b76..baabe01113 100644 --- a/components/esp_wifi/include/esp_wifi_types.h +++ b/components/esp_wifi/include/esp_wifi_types.h @@ -133,6 +133,9 @@ typedef enum { WIFI_REASON_ROAMING = 207, WIFI_REASON_ASSOC_COMEBACK_TIME_TOO_LONG = 208, WIFI_REASON_SA_QUERY_TIMEOUT = 209, + WIFI_REASON_NO_AP_FOUND_W_COMPATIBLE_SECURITY = 210, + WIFI_REASON_NO_AP_FOUND_IN_AUTHMODE_THRESHOLD = 211, + WIFI_REASON_NO_AP_FOUND_IN_RSSI_THRESHOLD = 212, } wifi_err_reason_t; typedef enum { diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index c5f428854a..2b823173bb 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit c5f428854abaf40104fe8c6a3d198d1836069d77 +Subproject commit 2b823173bb72ac120e1ed9698d0f294e24cf1db2