You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RPi Pico W with WPA3/PMF yields "ConnectionError: Unknown failure 1" #10385
The RPi Pico W fails to connect to the WPA3 WLAN network; the handshake also does not appear in the hostapd logs at all (as opposed to handshakes from other devices).
Description
The WiFi has been setup with hostapd using this config:
There is available WPA3 support in recent versions of the underlying driver. Could you try 10.0.0-alpha.6? I'm not sure it's been enabled, but that will give us a starting point. Thanks.
Now running on Adafruit CircuitPython 10.0.0-alpha.6 on 2025-05-17; Raspberry Pi Pico W with rp2040, but still the exactly same error. I'll try to check if I can setup and reproduce it with another WPA3-only access point to ensure it's not a problem with my hostapd.
Ok, I tested it with another access point on completely different hardware (FRITZ!Repeater 1200 running stock OpenWRT), and the problem persists – if I use WPA2-PSK with optional PMF, I see a normal handshake in my logs:
Sun Jun 8 22:30:27 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: authenticated
Sun Jun 8 22:30:27 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: associated (aid 1)
Sun Jun 8 22:30:27 2025 daemon.notice hostapd: phy0-ap1: AP-STA-CONNECTED de:ad:be:ef:c0:fe auth_alg=open
Sun Jun 8 22:30:27 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe WPA: pairwise key handshake completed (RSN)
Sun Jun 8 22:30:27 2025 daemon.notice hostapd: phy0-ap1: EAPOL-4WAY-HS-COMPLETED de:ad:be:ef:c0:fe
Sun Jun 8 22:30:42 2025 daemon.notice hostapd: phy0-ap1: AP-STA-DISCONNECTED de:ad:be:ef:c0:fe
Sun Jun 8 22:30:42 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: disassociated
Sun Jun 8 22:30:43 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
However, once I change the network into WPA3-SAE with enforced PRF, I see:
<nothing>
Just to make sure I double-checked things with my phone, and my phone can indeed join the AP via WPA3-SAE:
Sun Jun 8 22:43:24 2025 daemon.info hostapd: phy0-ap1: STA aa:bb:cc:dd:ee:ff IEEE 802.11: associated (aid 1)
Sun Jun 8 22:43:24 2025 daemon.notice hostapd: phy0-ap1: AP-STA-CONNECTED aa:bb:cc:dd:ee:ff auth_alg=sae
Sun Jun 8 22:43:24 2025 daemon.info hostapd: phy0-ap1: STA aa:bb:cc:dd:ee:ff WPA: pairwise key handshake completed (RSN)
Sun Jun 8 22:43:24 2025 daemon.notice hostapd: phy0-ap1: EAPOL-4WAY-HS-COMPLETED aa:bb:cc:dd:ee:ff
Sun Jun 8 22:43:35 2025 daemon.notice hostapd: phy0-ap1: STA aa:bb:cc:dd:ee:ff IEEE 802.11: did not acknowledge authentication response
Sun Jun 8 22:43:36 2025 daemon.info hostapd: phy0-ap1: STA aa:bb:cc:dd:ee:ff IEEE 802.11: authenticated
Sun Jun 8 22:43:42 2025 daemon.notice hostapd: phy0-ap1: AP-STA-DISCONNECTED aa:bb:cc:dd:ee:ff
If I can help you by providing further information or something, please let me know 😊
For protocol, I also checked what happens with WPA2-PSK with enforced PMF, but that works and I can see the handshake (this was because I have experienced weird problems with PMF "support" in other contexts).
Details
Sun Jun 8 22:39:50 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: authenticated
Sun Jun 8 22:39:50 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: associated (aid 1)
Sun Jun 8 22:39:50 2025 daemon.notice hostapd: phy0-ap1: AP-STA-CONNECTED de:ad:be:ef:c0:fe auth_alg=open
Sun Jun 8 22:39:50 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe WPA: pairwise key handshake completed (RSN)
Sun Jun 8 22:39:50 2025 daemon.notice hostapd: phy0-ap1: EAPOL-4WAY-HS-COMPLETED de:ad:be:ef:c0:fe
Sun Jun 8 22:40:04 2025 daemon.notice hostapd: phy0-ap1: AP-STA-DISCONNECTED de:ad:be:ef:c0:fe
Sun Jun 8 22:40:04 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: disassociated
Sun Jun 8 22:40:05 2025 daemon.info hostapd: phy0-ap1: STA de:ad:be:ef:c0:fe IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Thanks for the testing table, it made the cause easy to find. The Pico W always tries to connect using WPA2, so a WPA3-only network never answers it and the connection times out with "Unknown failure 1".
I'm working on a fix that tries WPA2 first and then switches to WPA3 if the network doesn't respond. Once it's ready I'll post a test build here.
@Ve2mrx, would you be able to try it on your WPA3-only network?
@mikeysklar Can it be the reverse with AP mode "WPA2/WPA3 transition", so that the station gets WPA3 first if the network supports it? Or are we prioritizing speed of connection over improved security? iirc, there's always some kind of scan before connect, so the AP auth mode should be known?
@anecdata, the Pico W's scan can't tell WPA3 networks from WPA2 ones, so it doesn't know which to try first. Trying WPA3 first would slow down every WPA2 connection by about 4 seconds. Fixing the scan needs a WiFi driver change, so that's a follow-up.
@anecdata the PR now scans for the network first and joins with WPA3 when it's advertised, and scans show [WPA2, WPA3, PSK] like espressif. It waits on a small cyw43-driver fix (georgerobotics/cyw43-driver#179), then I'll update #11888.
@mikeysklar I tested the #11888 build (11.0.0-alpha.3-23-ga93753f546) on the same Pico W with a WPA3-only network (SAE only, 2.4 GHz channel 6, H2E not offered). Each try turns wifi.radio.enabled off and on, then calls wifi.radio.connect() with the default timeout.
Result: 2 of 15 tries connected, in 9.0 and 9.3 s, so through the WPA3 retry. The other 13 failed with Unknown failure 205 after 2.9-3.4 s. Both successes were the first try of a run, when the radio had been connected before the off/on; every other try failed, including a first try that started with the radio disconnected.
205 is WIFI_RADIO_ERROR_CONNECTION_FAIL, so it looks like the WPA2 join gets CYW43_LINK_FAIL before the 4 s mark and connect() returns before the WPA3 retry. Retrying with WPA3 on CYW43_LINK_FAIL as well might cover it.
On my WPA2/WPA3 transition network the same build connected 5 of 5 times in 3.0-4.0 s. I'm happy to test the scan-first version when it's ready.
Tested on a Pico Plus 2W (RP2350). Connects reliably in about 1.6s for either WPA3 or WPA2-WPA3. WPA3 prints several iterations of the following before connection:
Addendum: With more extended testing, it can sometimes take longer to connect in either case. Sometimes Authentication failure or Unknown failure 1 or 205. I'm looping between WPA3 and WPA2-WPA3 SSIDs.
(Also added a WPA2 (only) SSID in the loop, and it throws all the connection times to around 4-6 seconds, same occasional exceptions. Times are better oddly when there is no WPA2 present, perhaps some kind of interference, router behavior, or retained state in CYW43. Times go back down without WPA2 after a hard reset.)
Activity
dhalbert commentedon May 29, 2025
There is available WPA3 support in recent versions of the underlying driver. Could you try 10.0.0-alpha.6? I'm not sure it's been enabled, but that will give us a starting point. Thanks.
KizzyCode commentedon May 29, 2025
Now running on
Adafruit CircuitPython 10.0.0-alpha.6 on 2025-05-17; Raspberry Pi Pico W with rp2040, but still the exactly same error. I'll try to check if I can setup and reproduce it with another WPA3-only access point to ensure it's not a problem with my hostapd.KizzyCode commentedon Jun 8, 2025
Ok, I tested it with another access point on completely different hardware (FRITZ!Repeater 1200 running stock OpenWRT), and the problem persists – if I use WPA2-PSK with optional PMF, I see a normal handshake in my logs:
However, once I change the network into WPA3-SAE with enforced PRF, I see:
Just to make sure I double-checked things with my phone, and my phone can indeed join the AP via WPA3-SAE:
If I can help you by providing further information or something, please let me know 😊
For protocol, I also checked what happens with WPA2-PSK with enforced PMF, but that works and I can see the handshake (this was because I have experienced weird problems with PMF "support" in other contexts).
Details
Ve2mrx commentedon Jun 29, 2026
ConnectionError: Unknown failure 1)Tested on:
Adafruit CircuitPython 10.2.1 on 2026-05-13; Raspberry Pi Pico W with rp2040mikeysklar commentedon Nov 16, 2026
Thanks for the testing table, it made the cause easy to find. The Pico W always tries to connect using WPA2, so a WPA3-only network never answers it and the connection times out with "Unknown failure 1".
I'm working on a fix that tries WPA2 first and then switches to WPA3 if the network doesn't respond. Once it's ready I'll post a test build here.
@Ve2mrx, would you be able to try it on your WPA3-only network?
anecdata commentedon Nov 16, 2026
@mikeysklar Can it be the reverse with AP mode "WPA2/WPA3 transition", so that the station gets WPA3 first if the network supports it? Or are we prioritizing speed of connection over improved security? iirc, there's always some kind of scan before connect, so the AP auth mode should be known?
Ve2mrx commentedon Nov 17, 2026
@mikeysklar Yes, glad to. Post the build here and I'll try it on the same Pico W, on my WPA3-only network.
mikeysklar commentedon Nov 17, 2026
@Ve2mrx, the fix is in #11888.
Here's the Pico W build https://github.com/adafruit/circuitpython/actions/runs/43998882882/artifacts/14291855805.
Could you try it on your WPA3-only network?
mikeysklar commentedon Nov 17, 2026
@anecdata, the Pico W's scan can't tell WPA3 networks from WPA2 ones, so it doesn't know which to try first. Trying WPA3 first would slow down every WPA2 connection by about 4 seconds. Fixing the scan needs a WiFi driver change, so that's a follow-up.
anecdata commentedon Nov 17, 2026
Pico W scan always reports
[wifi.AuthMode.WPA2, wifi.AuthMode.PSK]on my "WPA2/WPA3 - Personal" network, which I guess is the follow up issue.(
espressifreports[wifi.AuthMode.WPA2, wifi.AuthMode.WPA3, wifi.AuthMode.PSK]as expected)mikeysklar commentedon Nov 17, 2026
@anecdata the PR now scans for the network first and joins with WPA3 when it's advertised, and scans show
[WPA2, WPA3, PSK]like espressif. It waits on a small cyw43-driver fix (georgerobotics/cyw43-driver#179), then I'll update #11888.Ve2mrx commentedon Nov 17, 2026
@mikeysklar I tested the #11888 build (
11.0.0-alpha.3-23-ga93753f546) on the same Pico W with a WPA3-only network (SAE only, 2.4 GHz channel 6, H2E not offered). Each try turnswifi.radio.enabledoff and on, then callswifi.radio.connect()with the default timeout.Result: 2 of 15 tries connected, in 9.0 and 9.3 s, so through the WPA3 retry. The other 13 failed with
Unknown failure 205after 2.9-3.4 s. Both successes were the first try of a run, when the radio had been connected before the off/on; every other try failed, including a first try that started with the radio disconnected.205 is
WIFI_RADIO_ERROR_CONNECTION_FAIL, so it looks like the WPA2 join getsCYW43_LINK_FAILbefore the 4 s mark andconnect()returns before the WPA3 retry. Retrying with WPA3 onCYW43_LINK_FAILas well might cover it.On my WPA2/WPA3 transition network the same build connected 5 of 5 times in 3.0-4.0 s. I'm happy to test the scan-first version when it's ready.
mikeysklar commentedon Nov 17, 2026
@Ve2mrx Thanks, that matches what I saw:
The current build goes 1/10 on an SAE-only AP because the WPA2 attempt fails fast and never reaches the retry.
The scan-first version picks WPA3 from the scan up front and went 9/10 on the same setup.
I'll ping you when #11888 is updated after georgerobotics/cyw43-driver#179 merges.
mikeysklar commentedon Nov 21, 2026
@Ve2mrx, #11888 is updated. It now scans first and joins with WPA3 when the network advertises it.
Here's the new Pico W build: https://github.com/adafruit/circuitpython/actions/runs/44835886906/artifacts/14678541933
On my WPA3-only test access point it connected 9 of 10 times.
Could you run the same test on your WPA3-only network?
anecdata commentedon Nov 21, 2026
Tested on a Pico Plus 2W (RP2350). Connects reliably in about 1.6s for either WPA3 or WPA2-WPA3. WPA3 prints several iterations of the following before connection:
Addendum: With more extended testing, it can sometimes take longer to connect in either case. Sometimes
Authentication failureorUnknown failure 1or205. I'm looping between WPA3 and WPA2-WPA3 SSIDs.(Also added a WPA2 (only) SSID in the loop, and it throws all the connection times to around 4-6 seconds, same occasional exceptions. Times are better oddly when there is no WPA2 present, perhaps some kind of interference, router behavior, or retained state in CYW43. Times go back down without WPA2 after a hard reset.)
mikeysklar commentedon Nov 21, 2026
@anecdata thanks for testing on the RP2350.
The cipher messages were driver warnings about newer ciphers that WPA3 routers offer. The latest commit on #11888 turns them off.
The occasional failures match what I see: 9 of 10 joins succeed on my WPA3-only test AP.
I haven't seen the slowdown when a WPA2 network is in the loop. Does it happen on CircuitPython 10.x too?
Ve2mrx commentedon Nov 21, 2026
@mikeysklar The new build works on my WPA3-only network. Thanks for the fix!
Build:
11.0.0-alpha.3-64-g87ad6ed8c6(with a7c0137), same Pico W as before.Test: each try turns
wifi.radio.enabledoff and on, then callswifi.radio.connect()with the default timeout.Wi-Fi setup:
['WPA3', 'PSK']['WPA2', 'WPA3', 'PSK']Five of the WPA3-only tries came right after a hard reset. No
[CYW43]cipher warnings showed on the console.