← index #6430Issue #11048
Related · high · value 0.279
QUERY · ISSUE

Add extra WLAN authmode in docs

openby eliclementopened 2020-09-10updated 2024-10-01
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

openby Flipje1955opened 2023-03-16updated 2023-09-09
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:

  1. "security": value 5 is returned (whereas doc offers only values 0..4);
  2. "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()

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied