From: thepeople Date: Wed, 24 Mar 2010 00:22:19 +0000 (+0000) Subject: Enable management frame protection in hostapd, and make it configurable X-Git-Tag: fast2504n-3.10.28-merged~12684 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=913ec84fefd7bc88db0bb63a570ca2a944ccc95d;p=openwrt.git Enable management frame protection in hostapd, and make it configurable in /etc/config/wireless. Since ath9k is currently the only driver that supports MFP, it will only be enabled when ath9k is enabled. Signed-off-by: Stijn Tintel git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20396 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile index 002cd5328b..4c261f3cae 100644 --- a/package/hostapd/Makefile +++ b/package/hostapd/Makefile @@ -54,7 +54,8 @@ DRIVER_MAKEOPTS= \ CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-mac80211) \ CONFIG_DRIVER_MADWIFI=$(CONFIG_PACKAGE_kmod-madwifi) \ CONFIG_DRIVER_HOSTAP=$(CONFIG_PACKAGE_kmod-hostap) \ - CONFIG_IEEE80211N=$(CONFIG_PACKAGE_kmod-ath9k) + CONFIG_IEEE80211N=$(CONFIG_PACKAGE_kmod-ath9k) \ + CONFIG_IEEE80211W=$(CONFIG_PACKAGE_kmod-ath9k) ifeq ($(LOCAL_TYPE),supplicant) ifeq ($(LOCAL_VARIANT),full) diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index c83c06df86..78dcf82f0b 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -106,6 +106,13 @@ hostapd_set_bss_options() { append "$var" "ssid=$ssid" "$N" [ -n "$bridge" ] && append "$var" "bridge=$bridge" "$N" [ -n "$ieee80211d" ] && append "$var" "ieee80211d=$ieee80211d" "$N" + + [ "$wpa" -ge "2" ] && config_get ieee80211w "$vif" ieee80211w + case "$ieee80211w" in + [012]) + append "$var" "ieee80211w=$ieee80211w" "$N" + ;; + esac } hostapd_setup_vif() {