Pico w with pico inky won't connect to wifi channel 13

Hi
Using the pimoroni-picow-v1.21.0-micropython.uf2 firmware (for pico inky support) I am not able to connect to the wifi on channel 13. My router must have recently switched channels. The router won’t allow me to set the channel manually, even in “expert” mode. I can connect to a hotspot running on channel 9 without issue. I have the COUNTRY = "GB" set in the WIFI_CONFIG.py

Running a scan with this code (found here) shows it can’t see the networks on channel 13

import network

wlan = network.WLAN(network.STA_IF)
wlan.active(True)
networks = wlan.scan()

print("{} networks found:\n".format(len(networks)))
print ("{:<64} {:<8} {:<6})".format('ssid', 'channel', 'rssi'))
for net in networks:
    print ("{:<64} {:<8} {:<6}".format(net[0].decode(), net[2], net[3]))

If I change to the latest Pico W RPI_PICO_W-20240105-v1.22.1.uf2 firmware a scan reveals the networks on channel 13. If I use this, I’ll be unable to import picographics as far as I can tell.

It would be a shame to set up another access point dedicated to the pico w when other 2.4GHz devices function fine.

I could confirm. Using Pico W (Stellar Unicorn, stellar_unicorn-v1.23.0-1-pimoroni-micropython.uf2) I also can’t connect to Wi-Fi networks on channel 12 or 13. wlan.scan() only see networks up to channel 11.

I have tried to set different countries with rp2.country(country) (GB, UA) but got the same result.

Have you checked if wlan.scan() takes arguments? The docs aren’t really clear, probably because this depends on the platform you are running on.

Having a look at the source-code from Pimoroni is also an option to get more insights.