esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

Fix AP stop sending beacon during WPS on STA in wifi concurrent mode. (IDFGH-8407)

Open sakamoto330 opened this issue 3 years ago • 3 comments

https://github.com/espressif/esp-idf/issues/9825

Connection of STA (PC etc.) joined to AP (ESP32) may be lost when the following steps.

  1. Boot in AP+STA mode.
  2. Join some STA (PC etc.) to AP (ESP32).
  3. Start to WPS on STA (ESP32).

Since the channel is switched when scanning with WPS, AP mode beacons may not be sent. As a result, STAs (PC etc.) connected in AP (ESP32) are disconnected.

Instead of scanning all channels at once, to take interval on each channel scan and gives AP mode the time to send beacon.

sakamoto330 avatar Sep 28 '22 04:09 sakamoto330

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


坂元敬 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Sep 28 '22 04:09 CLAassistant

Thanks for your contribution.

Alvin1Zhang avatar Sep 28 '22 05:09 Alvin1Zhang

Hi @sakamoto330 ,

Thanks for the contribution however this case should be handled in much more cleaner way by the driver.

We will consider implementing bucket scan/split scan to take care of similar scenario in future versions.

Also incase you are using this patch in your current IDF, suggest following changes :

.show_hidden = 0, // WPS AP cannot set hidden ssid(as per specs)

#define WPS_IGNORE_SEL_REG_MAX_CNT 53

kapilkedawat avatar Oct 11 '22 07:10 kapilkedawat