rtl8723cs wifi: WPA3/SAE doesn't work with iwd
When using iwd
instead of wpa_supplicant
I cannot connect to a WPA3/SAE only network. If I configure the AP to allow fallback to WPA2/PSK the connection works. If I switch back to wpa_supplicant
the connection works with WPA3. With iwd
debug logging enabled I see this (MACs/SSIDs redacted, mine differently from the neighbors'):
[Jan 08 14:16:25] daemon iwd: src/scan.c:scan_request_triggered() Passive scan triggered for wdev 1
[Jan 08 14:16:25] daemon iwd: src/station.c:station_dbus_scan_triggered() station_scan_triggered: 0
[Jan 08 14:16:25] daemon iwd: src/station.c:station_dbus_scan_triggered() Scan triggered for wlan0 subset 1
[Jan 08 14:16:26] daemon iwd: src/scan.c:scan_notify() Scan notification New Scan Results(34)
[Jan 08 14:16:26] daemon iwd: src/netdev.c:netdev_link_notify() event 16 on ifindex 3
[Jan 08 14:16:26] daemon iwd: src/station.c:station_add_seen_bss() Processing BSS '**:**:**:**:**:**' with SSID: ***, freq: 2412, rank: 1227, strength: -5300, data_rate: 150.0
[Jan 08 14:16:26] daemon iwd: src/station.c:station_add_seen_bss() Processing BSS '11:22:33:44:55:66' with SSID: My Network, freq: 2462, rank: 591, strength: -5000, data_rate: 72.2
[Jan 08 14:16:26] daemon iwd: src/station.c:station_add_seen_bss() Processing BSS '**:**:**:**:**:**' with SSID: ***, freq: 2412, rank: 295, strength: -6700, data_rate: 43.3
[Jan 08 14:16:26] daemon iwd: src/station.c:station_add_seen_bss() Processing BSS '**:**:**:**:**:**' with SSID: ***, freq: 2462, rank: 236, strength: -7200, data_rate: 28.9
[Jan 08 14:16:26] daemon iwd: src/station.c:station_add_seen_bss() Processing BSS '**:**:**:**:**:**' with SSID: ***, freq: 2462, rank: 118, strength: -7900, data_rate: 14.4
[Jan 08 14:16:26] daemon iwd: src/station.c:station_add_seen_bss() Processing BSS '**:**:**:**:**:**' with SSID: ***, freq: 2412, rank: 102, strength: -7900, data_rate: 15.0
[Jan 08 14:16:26] daemon iwd: src/station.c:station_autoconnect_start()
[Jan 08 14:16:26] daemon iwd: src/wiphy.c:wiphy_select_akm() Network is WPA3-Personal...
[Jan 08 14:16:26] daemon iwd: src/station.c:station_autoconnect_next() autoconnect: Trying SSID: My Network
[Jan 08 14:16:26] daemon iwd: src/station.c:station_autoconnect_next() autoconnect: No suitable BSSes found
[Jan 08 14:16:26] daemon iwd: src/station.c:station_autoconnect_next() autoconnect: Trying SSID: ***
[Jan 08 14:16:26] daemon iwd: src/station.c:station_autoconnect_next() autoconnect: '**:**:**:**:**:**' freq: 2412, rank: 1227, strength: -5300
[Jan 08 14:16:26] daemon iwd: src/station.c:station_autoconnect_next() autoconnect: network_autoconnect: No such file or directory (-2)
On the NM side, I simply see this:
[Jan 08 14:16:11] daemon NetworkManager[10276]: <error> [1704719771.9003] device (wlan0): Activation: (wifi) Network.Connect failed: GDBus.Error:net.connman.iwd.NotSupported: Operation not supported
[Jan 08 14:16:11] daemon NetworkManager[10276]: <info> [1704719771.9011] device (wlan0): state change: config -> failed (reason 'supplicant-failed', sys-iface-state: 'managed')
The best hint I have from looking at iwd
sources is the "Network is WPA3-Personal..." message, it shows up here in wiphy.c
. From the lines below my guess is that the wiphy_can_connect_sae()
function fails silently, so maybe the PP wifi driver is affected by the TODO listed in that function?
Either way this should be an issue for %Switch to iwd.
What device are you using?
pine64-pinephone 1.2b
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.12
-
v23.06
(supported until 2024-01-18) -
I confirm that the issue still is present after running sudo apk upgrade -a