Merge branch 'bugfix/wifi_prov_not_stopping_v3.3' into 'release/v3.3'

wifi_provisioning: Catch the Wi-Fi events even after Connection errors (v3.3)

See merge request espressif/esp-idf!8609
This commit is contained in:
Mahavir Jain 2020-05-06 11:18:27 +08:00
commit 511dc5516d

View file

@ -766,7 +766,7 @@ esp_err_t wifi_prov_mgr_event_handler(void *ctx, system_event_t *event)
/* 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 ESP_OK;
}