Merge branch 'bugfix/wifi_prov_not_stopping' into 'master'

wifi_provisioning: Catch the Wi-Fi events even after Connection errors

See merge request espressif/esp-idf!8019
This commit is contained in:
Mahavir Jain 2020-03-23 12:20:04 +08:00
commit 6af3456ca3

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