QUERY · ISSUE
Add extra WLAN authmode in docs
docsneeds-info
The current docs on the WLAN.scan() method indicates the following 5 authmode modes:
0 – open
1 – WEP
2 – WPA-PSK
3 – WPA2-PSK
4 – WPA/WPA2-PSK
I recently scanned for networks and found one with an authmode 5 which should correspond to a WIFI-AUTH/WPA2-ENTERPRISE authmode but the network authmode module constants available are:
AUTH_MAX (6)
AUTH_OPEN (0)
AUTH_WEP (1)
AUTH_WPA2_PSK (3)
AUTH_WPA_PSK (2)
AUTH_WPA_WPA2_PSK (4)
CANDIDATE · ISSUE
RP2040: wlan.scan results disconnected from documentation and faulty
bugport-rp2
When running wlan.scan on a Pico_w (MicroPython v1.19.1-966-g05bb26010 on 2023-03-13; Raspberry Pi Pico W with RP2040, also on earlier nightly builds), the output is disconnect from the documentation. Examples:
- "security": value 5 is returned (whereas doc offers only values 0..4);
- "hidden": values 2, 3 sometimes 5 is returned - on a non_hidden network - whereas doc offers only value 0,1;
script used:
import network
station = network.WLAN(network.STA_IF)
station.active(True)
active_ssid = station.scan()
for item in enumerate(active_ssid):
print(item)
station.disconnect()