Skip to content

Commit 081aec4

Browse files
committed
Retry connection when getting NOT_AUTHED
I saw it once with a correct password. Retrying may still fail but at least it'll try first.
1 parent 8ac9b17 commit 081aec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/esp32s2/common-hal/wifi/__init__.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ static void event_handler(void* arg, esp_event_base_t event_base,
5959
ESP_EARLY_LOGW(TAG, "reason %d 0x%02x", reason, reason);
6060
if (radio->retries_left > 0 &&
6161
(reason == WIFI_REASON_AUTH_EXPIRE ||
62+
reason == WIFI_REASON_NOT_AUTHED ||
6263
reason == WIFI_REASON_ASSOC_EXPIRE ||
6364
reason == WIFI_REASON_CONNECTION_FAIL ||
6465
reason == WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT)) {

0 commit comments

Comments
 (0)