Merge branch 'bugfix/esp_wifi_deinit_v4.2' into 'release/v4.2'

esp_wifi_deinit: Return ESP_ERR_WIFI_NOT_STOPPED if wifi is not stopped (v4.2)

See merge request espressif/esp-idf!12540
This commit is contained in:
Mahavir Jain 2021-03-01 05:32:08 +00:00
commit 77a78a22f6

View File

@ -122,7 +122,7 @@ esp_err_t esp_wifi_deinit(void)
if (esp_wifi_get_user_init_flag_internal()) {
ESP_LOGE(TAG, "Wi-Fi not stop");
return ESP_FAIL;
return ESP_ERR_WIFI_NOT_STOPPED;
}
esp_supplicant_deinit();