wireless client: Add support for WPA3

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2021-01-06 14:43:12 +00:00
parent 0c2be650b0
commit 5addf34780
13 changed files with 73 additions and 4 deletions

View File

@@ -86,6 +86,7 @@ function wpa_supplicant_config_line() {
local config=${2}
shift 2
local ieee80211w
local anonymous_identity
local auth_alg
local auth_mode
@@ -144,6 +145,11 @@ function wpa_supplicant_config_line() {
EAP)
key_mgmt="WPA-EAP"
;;
WPA3)
key_mgmt="SAE"
ieee80211w="2"
;;
WPA2)
auth_alg="OPEN"
proto="RSN"
@@ -209,7 +215,11 @@ function wpa_supplicant_config_line() {
echo " key_mgmt=${key_mgmt}"
fi
if [ -n "${psk}" ]; then
echo " psk=\"${psk}\""
if [ "${key_mgmt}" = "SAE" ]; then
echo " sae_password=\"${psk}\""
else
echo " psk=\"${psk}\""
fi
fi
if [ -n "${wep_tx_keyidx}" ]; then
echo " wep_tx_keyidx=${wep_tx_keyidx}"
@@ -227,6 +237,9 @@ function wpa_supplicant_config_line() {
if [ -n "${priority}" ]; then
echo " priority=${priority}"
fi
if [ -n "${ieee80211w}" ]; then
echo " ieee80211w=${ieee80211w}"
fi
# EAP
if [ "${mode}" = "EAP" ]; then