wpa_supplicant: Fix WPS connection issue after WPS done

esp_wifi_disconnect is needed to clear the wifi state and enable
station to connect to new SSID. Add changes to call it after
WPS is done.
pull/9620/head
Kapil Gupta 2022-08-22 20:25:02 +05:30
rodzic 5573d1395b
commit 4df06ed2f0
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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