diff options
author | Travis Kemen <thepeople@openwrt.org> | 2010-03-24 00:22:19 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2010-03-24 00:22:19 +0000 |
commit | 3f7af4ef3e946d07f3d343e4cf01bf7785b25498 (patch) | |
tree | 68354957517b81e11940ba16111c89f09672b865 /package/hostapd/files | |
parent | 650507a240180b78b95e55110c63dca74b2af0b0 (diff) | |
download | upstream-3f7af4ef3e946d07f3d343e4cf01bf7785b25498.tar.gz upstream-3f7af4ef3e946d07f3d343e4cf01bf7785b25498.tar.bz2 upstream-3f7af4ef3e946d07f3d343e4cf01bf7785b25498.zip |
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 <stijn@linux-ipv6.be>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20396 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r-- | package/hostapd/files/hostapd.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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() { |