From: Felix Fietkau Date: Wed, 11 Jun 2025 09:34:16 +0000 (+0200) Subject: wifi-scripts: enforce management frame protection on 6 GHz X-Git-Tag: v25.12.0-rc1~2201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=583f81ef0ee152404b633810607bbe15b0dcf9cf;p=thirdparty%2Fopenwrt.git wifi-scripts: enforce management frame protection on 6 GHz Configurations that don't enforce it are rejected by hostapd Signed-off-by: Felix Fietkau --- diff --git a/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh b/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh index f4a7c71bea1..f15e7f1b43e 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh +++ b/package/network/config/wifi-scripts/files/lib/netifd/hostapd.sh @@ -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 ;;