mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/wps_connection_optimization' into 'master'
wpa_supplicant: Use channel from WPS scan for WPS connect See merge request espressif/esp-idf!20184
This commit is contained in:
commit
1cfd20c476
@ -1576,6 +1576,7 @@ wifi_wps_scan_done(void *arg, STATUS status)
|
||||
os_memcpy(wifi_config.sta.bssid, sm->bssid, ETH_ALEN);
|
||||
os_memcpy(wifi_config.sta.ssid, (char *)sm->ssid[0], sm->ssid_len[0]);
|
||||
wifi_config.sta.bssid_set = 1;
|
||||
wifi_config.sta.channel = sm->channel;
|
||||
wpa_printf(MSG_INFO, "WPS: connecting to %s, bssid=" MACSTR,
|
||||
(char *)sm->ssid[0], MAC2STR(wifi_config.sta.bssid));
|
||||
esp_wifi_set_config(0, &wifi_config);
|
||||
|
Loading…
Reference in New Issue
Block a user