local config=${2}
shift 2
+ local ieee80211w
local anonymous_identity
local auth_alg
local auth_mode
EAP)
key_mgmt="WPA-EAP"
;;
+ WPA3)
+ key_mgmt="SAE"
+
+ ieee80211w="2"
+ ;;
WPA2)
auth_alg="OPEN"
proto="RSN"
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}"
if [ -n "${priority}" ]; then
echo " priority=${priority}"
fi
+ if [ -n "${ieee80211w}" ]; then
+ echo " ieee80211w=${ieee80211w}"
+ fi
# EAP
if [ "${mode}" = "EAP" ]; then