Merge branch 'bugfix/wps_connect_to_open_ap' into 'master'

esp_wifi: bugfix wps connect to open AP

See merge request espressif/esp-idf!20247
This commit is contained in:
Kapil Gupta 2022-09-20 23:59:47 +08:00
commit 2bbd5ea69c

View File

@ -1404,6 +1404,7 @@ wifi_station_wps_init(void)
sm = gWpsSm;
esp_wifi_get_macaddr_internal(WIFI_IF_STA, sm->ownaddr);
os_memcpy(gWpaSm.own_addr, sm->ownaddr, ETH_ALEN);
sm->identity_len = WSC_ID_ENROLLEE_LEN;
os_memcpy(sm->identity, WSC_ID_ENROLLEE, sm->identity_len);