Enable management frame protection in hostapd, and make it configurable
[openwrt-10.03/.git] / package / hostapd / files / hostapd.sh
index c83c06df8654da399b2a117f4946ff38c337e7dd..78dcf82f0ba6616dbdc5be47018e557e6cfefe90 100644 (file)
@@ -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() {