summaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-11 13:19:53 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-01-11 13:19:53 +0000
commit9577fc90b0eabeaa998f3bfb6c5360549278e7cc (patch)
tree000bfd6f4e26ee86cbd3d81cb70d48c301562fa4 /package/mac80211
parent77e1ad2c5fb5c1f2d051165ebb25226c5ce95455 (diff)
[package] mac80211: support per-vif wmm option, defaults to 1 if unset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24966 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 2f4abd085..b20785cf6 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -103,12 +103,14 @@ mac80211_hostapd_setup_bss() {
config_get_bool wds "$vif" wds 0
[ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N"
+ local macaddr hidden maxassoc wmm
config_get macaddr "$vif" macaddr
- config_get_bool hidden "$vif" hidden 0
config_get maxassoc "$vif" maxassoc
+ config_get_bool hidden "$vif" hidden 0
+ config_get_bool wmm "$vif" wmm 1
cat >> /var/run/hostapd-$phy.conf <<EOF
$hostapd_cfg
-wmm_enabled=1
+wmm_enabled=$wmm
bssid=$macaddr
ignore_broadcast_ssid=$hidden
${maxassoc:+max_num_sta=$maxassoc}