fix(wifi): Disconnect station in wps_start instead of wps_enable

Modifies changes from 3ee449bc5d
This commit is contained in:
Sarvesh Bodakhe
2025-07-02 14:32:51 +05:30
committed by akshat
parent 8ccb32480b
commit 52fa2e0087

View File

@@ -1463,7 +1463,6 @@ static int wifi_station_wps_init(const esp_wps_config_t *config)
}
sm = gWpsSm;
esp_wifi_disconnect();
esp_wifi_get_macaddr_internal(WIFI_IF_STA, sm->ownaddr);
os_memcpy(gWpaSm.own_addr, sm->ownaddr, ETH_ALEN);
@@ -1740,6 +1739,7 @@ int wifi_station_wps_start(void)
sm->wps->wps->dh_pubkey = sm->wps->dh_pubkey_e;
sm->wps->wps->rf_band_cb = wps_rf_band_cb;
sm->wps->dh_privkey = NULL;
esp_wifi_disconnect();
wifi_wps_scan(NULL, NULL);
break;
}