WPA3 on Raspberry Pis

WPA3 should work but doesn't, on all generations of raspberry pis if the version of wpa_supplicant is new enough.



Motivation

I blindly apt upgraded the other day and lost wifi on my pi zero2. This may have happened a few other times on a pi4 a couple of years previously where I was only able to downgrade wpa_supplicant as a fix. Rebooting, wpa_supplicant no longer connected to the mixed WPA2-PSK/WPA3-SAE or WPA3-SAE access points. wpa-cli showed it was trying to connect but failed to authenticate and gave up.

I think this is what nuked the connection:

[UPGRADE] wpasupplicant:armhf 2:2.9.0-21 -> 2:2.10-9+b2
[UPGRADE] raspberrypi-kernel:armhf 1:1.20220120-1 -> 1:1.20220331-1

WPA3-SAE

Note key_mgmt=SAE, sae_pasword, and iee80211w=2

ssid="name"
key_mgmt=SAE
sae_password="saepasswordy"
ieee80211w=2
proto=RSN

mixed WPA2-PSK/WPA3-SAE

This is how I restored the connection.

ssid="name"
key_mgmt=WPA-PSK-SHA256
psk=somepsk1
ieee80211w=2
proto=RSN

arch linux - wpa_supplicant raspberrypi issue 3619