adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.11k stars 1.22k forks source link

Pico W: network scanning shows a lot of duplicates #7318

Open dhalbert opened 1 year ago

dhalbert commented 1 year ago

When using wifi.radio.start_scanning_networks() on the Pico W, I see many duplicates. I have two AP's with the same SSID, plus, another different one. For example (SSID's obfuscated):

Available WiFi networks:
    MyHome      RSSI: -77   Channel: 6
    MyHome      RSSI: -37   Channel: 6
    Neighbor        RSSI: -88   Channel: 8
    MyHome      RSSI: -79   Channel: 6
    MyHome      RSSI: -39   Channel: 6
    MyHome      RSSI: -37   Channel: 6
    MyHome      RSSI: -42   Channel: 6
    MyHome      RSSI: -81   Channel: 6
    MyHome      RSSI: -41   Channel: 6
    MyHomeOther     RSSI: -94   Channel: 11
    MyHome      RSSI: -81   Channel: 6
    MyHome      RSSI: -43   Channel: 6
    MyHome      RSSI: -38   Channel: 6
    MyHome      RSSI: -39   Channel: 6
    MyHome      RSSI: -76   Channel: 6
    MyHome      RSSI: -39   Channel: 6

This contrasts with the ESP32-S2 results:

    MyHome      RSSI: -54   Channel: 6
    MyHome      RSSI: -70   Channel: 6
    Neighbor        RSSI: -86   Channel: 6
jepler commented 1 year ago

Same with pico-sdk's example scanner. it's an upstream bug but I have not reported it because I doubt it'll be addressed.

ssid:                                  rssi:  -90 chan:   1 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid:                                  rssi:  -96 chan:   6 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 1)                 rssi:  -70 chan:   7 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 1)                 rssi:  -71 chan:   7 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 2)                 rssi:  -57 chan:   9 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 2)                 rssi:  -55 chan:   9 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 2)                 rssi:  -54 chan:   9 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 2)                 rssi:  -54 chan:   9 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 2)                 rssi:  -54 chan:   9 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 2)                 rssi:  -54 chan:   9 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 4)                 rssi:  -58 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 4)                 rssi:  -58 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 3)                 rssi:  -58 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 0
ssid: (access point 1)                 rssi:  -57 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 3
ssid: (access point 4)                 rssi:  -58 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 4)                 rssi:  -57 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 4)                 rssi:  -57 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 3)                 rssi:  -58 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 0
ssid: (access point 1)                 rssi:  -59 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 3
ssid: (access point 3)                 rssi:  -58 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 0
ssid: (access point 4)                 rssi:  -56 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 3)                 rssi:  -60 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 0
ssid: (access point 1)                 rssi:  -61 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 3
ssid: (access point 4)                 rssi:  -62 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5
ssid: (access point 4)                 rssi:  -61 chan:  11 mac: xx:xx:xx:xx:xx:xx sec: 5