Skip to content

Commit

Permalink
fix(esp_wifi): Add more descriptive reasons for disconnect
Browse files Browse the repository at this point in the history
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 #5957
  • Loading branch information
jgujarathi authored and jack0c committed Nov 16, 2023
1 parent de36cb7 commit b62d63b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/esp_wifi/include/esp_wifi_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b62d63b

Please sign in to comment.