summaryrefslogtreecommitdiff
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2010-03-24 00:22:19 +0000
committerTravis Kemen <thepeople@openwrt.org>2010-03-24 00:22:19 +0000
commit22b92b3e13853dd592c9c9677477c6caf0d1a6bf (patch)
tree357d21587435b11ec44f60d0a3f98ed74d9bfe83 /package/hostapd/files
parent21f006f1568670abb82a7ae6cd2fb1c379c8df3b (diff)
downloadmtk-20170518-22b92b3e13853dd592c9c9677477c6caf0d1a6bf.zip
mtk-20170518-22b92b3e13853dd592c9c9677477c6caf0d1a6bf.tar.gz
mtk-20170518-22b92b3e13853dd592c9c9677477c6caf0d1a6bf.tar.bz2
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> SVN-Revision: 20396
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index c83c06d..78dcf82 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() {