mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(esp_wifi): Disconnect before sending WPS success event
This commit is contained in:
@@ -911,6 +911,8 @@ int wps_finish(void)
|
||||
esp_wifi_connect();
|
||||
|
||||
os_free(config);
|
||||
} else {
|
||||
esp_wifi_disconnect();
|
||||
}
|
||||
eloop_cancel_timeout(wifi_station_wps_success, NULL, NULL);
|
||||
eloop_register_timeout(1, 0, wifi_station_wps_success, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user