X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=blobdiff_plain;f=src%2Ffunctions%2Ffunctions.hostapd;h=410e6e58222df77d85855986fafb3a759c98bb49;hp=095beb8ee181303437187f89404eae3f16b88726;hb=1ef692c599a77fcb0683e3196b8f4b56f52644da;hpb=1ed79f5432d0bd4c4f0c8f8692b488c268e379a4 diff --git a/src/functions/functions.hostapd b/src/functions/functions.hostapd index 095beb8e..410e6e58 100644 --- a/src/functions/functions.hostapd +++ b/src/functions/functions.hostapd @@ -407,6 +407,7 @@ hostapd_config_write() { local wpa_passphrase local sae_password local wpa_strict_rekey + local sae_require_mfp # WPA3 Personal if enabled WPA3_PERSONAL; then @@ -416,6 +417,10 @@ hostapd_config_write() { # Add WPA key management list_append wpa_key_mgmt "SAE" sae_password="${secret}" + + if enabled MFP; then + sae_require_mfp="1" + fi fi # WPA2 Personal @@ -441,7 +446,7 @@ hostapd_config_write() { local var for var in wpa wpa_key_mgmt wpa_passphrase sae_password \ - rsn_pairwise group_cipher wpa_strict_rekey; do + rsn_pairwise group_cipher wpa_strict_rekeyi sae_require_mfp; do if [ -n "${!var}" ]; then print "${var}=${!var}" fi