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.
This commit is contained in:
parent
8ac9b176c9
commit
081aec4429
@ -59,6 +59,7 @@ static void event_handler(void* arg, esp_event_base_t event_base,
|
||||
ESP_EARLY_LOGW(TAG, "reason %d 0x%02x", reason, reason);
|
||||
if (radio->retries_left > 0 &&
|
||||
(reason == WIFI_REASON_AUTH_EXPIRE ||
|
||||
reason == WIFI_REASON_NOT_AUTHED ||
|
||||
reason == WIFI_REASON_ASSOC_EXPIRE ||
|
||||
reason == WIFI_REASON_CONNECTION_FAIL ||
|
||||
reason == WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT)) {
|
||||
|
Loading…
Reference in New Issue
Block a user