Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/cyw43_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ void cyw43_cb_process_async_event(void *cb_data, const cyw43_async_event_t *ev)
// No matching SSID found (could be out of range, or down)
} else {
// Other failure setting SSID
CYW43_DEBUG("link error status %d\n", ev->status);
self->wifi_join_state = WIFI_JOIN_STATE_FAIL;
}
} else if (ev->event_type == CYW43_EV_AUTH) {
Expand All @@ -387,10 +388,14 @@ void cyw43_cb_process_async_event(void *cb_data, const cyw43_async_event_t *ev)
self->wifi_join_state = (self->wifi_join_state & ~WIFI_JOIN_STATE_KIND_MASK) | WIFI_JOIN_STATE_ACTIVE;
}
self->wifi_join_state |= WIFI_JOIN_STATE_AUTH;
} else if (ev->status == 6) {
// Unsolicited auth packet, ignore it
} else if (ev->status == 6 || ev->status == 2 || ev->status == 5) {
// 2 = Timeout
// 5 = No ack
// 6 = Unsolicited auth packet
// Ignore it, lets keep trying
} else {
// Cannot authenticate
CYW43_DEBUG("auth error status %d\n", ev->status);
self->wifi_join_state = WIFI_JOIN_STATE_BADAUTH;
}
} else if (ev->event_type == CYW43_EV_DEAUTH_IND) {
Expand Down Expand Up @@ -423,6 +428,7 @@ void cyw43_cb_process_async_event(void *cb_data, const cyw43_async_event_t *ev)
cyw43_schedule_internal_poll_dispatch(cyw43_poll_func);
} else {
// PSK_SUP failure
CYW43_DEBUG("auth psk status %d\n", ev->status);
self->wifi_join_state = WIFI_JOIN_STATE_BADAUTH;
}
} else if (ev->event_type == CYW43_EV_ICV_ERROR) {
Expand Down
Loading