Merge branch 'bugfix/wifi_prov_not_stopping_v4.0' into 'release/v4.0'

wifi_provisioning: Catch the Wi-Fi events even after Connection errors (v4.0)

See merge request espressif/esp-idf!8608
This commit is contained in:
Mahavir Jain 2020-05-26 11:48:15 +08:00
commit 254967eea5

View file

@ -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;
}