Skip to content

Commit 0836abb

Browse files
authored
Merge pull request #3720 from tannewt/more_wifi_retry
Retry connection when getting NOT_AUTHED
2 parents 6a93391 + 081aec4 commit 0836abb

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)