Open AxelLin opened 3 weeks ago
D (5664) wifi:perform scan: ss_state=0x9, chan<10,0>, dur<0,120> D (5681) wifi:rsn valid: gcipher=3 ucipher=3 akm=5 mac=ac:84:c6:32:1a:26 D (5682) wifi:profile match: ss_state=0x7 D (5701) wifi:rsn valid: gcipher=3 ucipher=3 akm=5 mac=ac:84:c6:32:14:77 D (5702) wifi:profile match: ss_state=0x7 D (5706) wifi:rsn valid: gcipher=3 ucipher=3 akm=5 mac=ac:84:c6:32:1a:26 D (5708) wifi:profile match: ss_state=0x7 D (5756) wifi:rsn valid: gcipher=3 ucipher=3 akm=5 mac=d8:47:32:7c:37:ae D (5756) wifi:profile match: ss_state=0x7 D (5764) wifi:rsn valid: gcipher=3 ucipher=3 akm=5 mac=ac:84:c6:32:14:77 D (5764) wifi:profile match: ss_state=0x7 D (5785) wifi:scan end: arg=0x0, status=0, ss_state=0x7 D (5786) wifi:perform scan: ss_state=0xd, chan<11,0>, dur<0,120> D (5907) wifi:scan end: arg=0x0, status=0, ss_state=0x7 D (5907) wifi:perform scan: ss_state=0xd, chan<12,0>, dur<360,360> D (6268) wifi:scan end: arg=0x0, status=0, ss_state=0x7 D (6268) wifi:perform scan: ss_state=0xd, chan<13,0>, dur<360,360> D (6629) wifi:scan end: arg=0x0, status=0, ss_state=0x7 D (6629) wifi:perform scan: ss_state=0xd, chan<14,0>, dur<360,360> D (6990) wifi:scan end: arg=0x0, status=0, ss_state=0x7 D (6990) wifi:filter: set rx policy=4 D (6991) wifi:first chan=1 D (6991) wifi:handoff_cb: status=0 D (6993) wifi:ap found, mac=d8:47:32:7c:37:ae D (7362) wifi:going for connection with bssid=d8:47:32:7c:37:ae
Above wifi log only shows the AP's mac, but does not show the AP's rssi. It would be hlepful for debug if also print the AP's rssi. (Then you can verify this issue)
Answers checklist.
IDF version.
v5.2.2-89-gcc9edf2085 and master
Espressif SoC revision.
ESP32S3
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32S3-WROOM-1
Power Supply used.
USB
What is the expected behavior?
When WIFI_CONNECT_AP_BY_SIGNAL is set, the device should select AP with best signal to join.
What is the actual behavior?
Sometimes, the esp32s3 (as a STA) will select AP with bad signal to join.
Steps to reproduce.
I test with a few TP-Link Deco AP around my esp32s3.
I use below setting in my wifi_config: .scan_method = WIFI_ALL_CHANNEL_SCAN, .sort_method = WIFI_CONNECT_AP_BY_SIGNAL,
However, it seems the esp32s3 does not always connect to the best signal AP. In my test environment, the AP ac:84:c6:32:1a:26 and ac:84:c6:32:14:77 are closed to the test device. d8:47:32:7c:37:ae is far away. However, sometimes the ESP32S3 will join d8:47:32:7c:37:ae, but it's not the best signal AP. Also note, testing at the same place the ESP32 works fine which won't select d8:47:32:7c:37:ae to join. Only ESP32S3 has this issue.
Debug Logs.
More Information.
No response