wifi-scripts: enforce management frame protection on 6 GHz

Configurations that don't enforce it are rejected by hostapd

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-06-11 11:34:16 +02:00
parent 254dd7d7d9
commit 583f81ef0e

View file

@ -691,7 +691,11 @@ hostapd_set_bss_options() {
[ "$ppsk" -eq 0 ] && set_default sae_pwe 2
;;
psk-sae|eap-eap2)
set_default ieee80211w 1
if [ "$band" = 6g ]; then
set_default ieee80211w 2
else
set_default ieee80211w 1
fi
set_default sae_require_mfp 1
[ "$ppsk" -eq 0 ] && set_default sae_pwe 2
;;