mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-22 09:06:27 +00:00

This fixes the issue where station was not able connect using WPS if it was already in connected state. wifi_wps_scan_done() issues an esp_wifi_disconnect() before calling esp_wifi_connect() to associate with the newly discovered AP. This behavior incorrectly triggered a failure event (WIFI_EVENT_STA_WPS_ER_FAILED) even though the disconnection was part of the normal WPS flow. This commit prevents sending the false failure event, ensuring expected WPS behavior.