diff --git a/components/wifi_provisioning/src/manager.c b/components/wifi_provisioning/src/manager.c index 94e141ebc..c36b3a8a0 100644 --- a/components/wifi_provisioning/src/manager.c +++ b/components/wifi_provisioning/src/manager.c @@ -826,7 +826,7 @@ static void wifi_prov_mgr_event_handler_internal( /* Only handle events when credential is received and * Wi-Fi STA is yet to complete trying the connection */ - if (prov_ctx->prov_state != WIFI_PROV_STATE_CRED_RECV) { + if (prov_ctx->prov_state < WIFI_PROV_STATE_CRED_RECV) { RELEASE_LOCK(prov_ctx_lock); return; }