fix(wifi): Stop scan when wps is disabled

This commit is contained in:
Sajia
2026-03-12 14:34:16 +08:00
committed by BOT
parent d1733defe6
commit 1800a867ab
@@ -1635,6 +1635,7 @@ static int wifi_wps_disable_internal(void *ctx, void *data)
if (wps_get_status() == WPS_STATUS_PENDING) {
esp_wifi_disconnect();
}
esp_wifi_scan_stop();
wps_set_status(WPS_STATUS_DISABLE);
/* Call wps_delete_timer to delete all WPS timer, no timer will call wps_post()