wifi: add `key_mgmt=WPA-PSK-SHA256` and `ieee80211w=1` by default

Some APs with WPA2-PSK/WPA3-SAE mixed mode only support WPA-PSK-SHA256 key
management mode and also require IEEE 802.11w support. Adding these two
lines to the configuration will avoid some troubles when connecting to some
newer APs.

Signed-off-by: Yangyu Chen <cyy@cyyself.name>
This commit is contained in:
Yangyu Chen 2024-02-20 16:32:34 +08:00
parent 3b8edefc4d
commit f47fa8ef39
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Alternatively you can connect to the PiKVM via SSH. The built-in Web Terminal (a
```
# wpa_passphrase 'MyNetwork' 'P@assw0rd' > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
# sed -i '$i\\tkey_mgmt=WPA-PSK-SHA256 WPA-PSK\n\tieee80211w=1' /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
# chmod 640 /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
```