Merge branch 'bugfix/wps_connection_issue_v5.0' into 'release/v5.0'

wpa_supplicant: Fix WPS connection issue after WPS done (v5.0)

See merge request espressif/esp-idf!19719
This commit is contained in:
Jiang Jiang Jian 2022-08-25 13:48:38 +08:00
commit 73a4b80a87

View File

@ -1910,8 +1910,8 @@ int esp_wifi_wps_disable(void)
wpa_printf(MSG_ERROR, "wps disable: failed to disable wps, ret=%d", ret);
}
/* Only disconnect in case of WPS pending */
if (wps_status == WPS_STATUS_PENDING) {
/* Only disconnect in case of WPS pending/done */
if ((wps_status == WPS_STATUS_PENDING) || (wps_status == WPS_STATUS_SUCCESS)) {
esp_wifi_disconnect();
}
esp_wifi_set_wps_start_flag_internal(false);