ESP8266 Developer Zone The Official ESP8266 Forum 2021-02-19T13:26:16+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=2520 2021-02-19T13:26:16+08:00 2021-02-19T13:26:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2520&p=99336#p99336 <![CDATA[Re: WPS do not work if more that one AP with the same SSID]]>
The WPS is started only on one AP (further), upon second AP (closer) is the ESP8266 device.

The ESP see that WPS is started on further AP but tryies connect to closer (for credentials) what cause failure.

I do more investigation in the libwps.a (by disassemble it) and there the wifi_station_set_config and next wifi_station_connect is called, maybe in the structure passed to the station_set_config function the bssid is not set?

(sorry for same issue on git, but I forgot about this)

Statistics: Posted by faeton — Fri Feb 19, 2021 1:26 pm


]]>
2017-03-24T10:48:53+08:00 2017-03-24T10:48:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2520&p=11553#p11553 <![CDATA[Re: WPS do not work if more that one AP with the same SSID]]>
If you press the WPS button on both routers at the same time, the connection will fail.

Statistics: Posted by ESP_Faye — Fri Mar 24, 2017 10:48 am


]]>
2016-08-06T22:29:26+08:00 2016-08-06T22:29:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2520&p=8303#p8303 <![CDATA[WPS do not work if more that one AP with the same SSID]]>
I have problem with WPS. If I set the same SSID on two AP (routers), then the WPS do not work.
My SDK is:
1.5.4.1(39cb9a32)
Log:

Code:

mode : null
mode : sta(18:fe:34:d1:8a:9c)
add if0
wifi_wps_enable
wps scan
build public key start
build public key finish
f r0, scandone
f r0, scandone
f r0, wps discover [myssid]
scandone
WPS: neg start
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 0 (d)

At this moment the function passed to wifi_set_event_handler_cb is called:

Code:

disconnect from ssid myssid, reason 203

After about 2 minutes the function passed to wifi_set_wps_cb is called with argument WPS_CB_ST_TIMEOUT.

If the two AP have different SSID after step state: 2 -> 3 (0) is:

Code:

state: 3 -> 5 (10)
add 0
aid 1
cnt
process pubkey start
process pubkey finish
WPS: key[mykey]
wps finished

Statistics: Posted by faeton — Sat Aug 06, 2016 10:29 pm


]]>