Skip to content

Commit c6fba87

Browse files
committed
Add a bit more debug logging for errors
1 parent fc947ce commit c6fba87

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/cyw43_ctrl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ void cyw43_cb_process_async_event(void *cb_data, const cyw43_async_event_t *ev)
378378
// No matching SSID found (could be out of range, or down)
379379
} else {
380380
// Other failure setting SSID
381+
CYW43_DEBUG("link error status %d\n", ev->status);
381382
self->wifi_join_state = WIFI_JOIN_STATE_FAIL;
382383
}
383384
} else if (ev->event_type == CYW43_EV_AUTH) {
@@ -427,6 +428,7 @@ void cyw43_cb_process_async_event(void *cb_data, const cyw43_async_event_t *ev)
427428
cyw43_schedule_internal_poll_dispatch(cyw43_poll_func);
428429
} else {
429430
// PSK_SUP failure
431+
CYW43_DEBUG("auth psk status %d\n", ev->status);
430432
self->wifi_join_state = WIFI_JOIN_STATE_BADAUTH;
431433
}
432434
} else if (ev->event_type == CYW43_EV_ICV_ERROR) {

0 commit comments

Comments
 (0)