[8.09] merge r17676
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 22 Sep 2009 16:28:08 +0000 (16:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 22 Sep 2009 16:28:08 +0000 (16:28 +0000)
SVN-Revision: 17677

docs/wireless.tex
package/broadcom-wl/files/lib/wifi/broadcom.sh

index dd6ec43dd9ead3d4a98644aeb623c595cd510752..6243763b79dea58d85d2500dcaef2f95ded6c5a2 100644 (file)
@@ -121,6 +121,8 @@ config wifi-iface
     option port     port
     option hidden   0,1
     option isolate  0,1
+    option doth     0,1        (atheros, broadcom)
+    option wmm      0,1        (atheros, broadcom)
 \end{Verbatim}
 
 \paragraph{Options for the \texttt{wifi-device}:}
@@ -227,6 +229,14 @@ config wifi-iface
         Optional: Isolation is a mode usually set on hotspots that limits the clients to communicate only with the AP and not with other wireless clients.
         0 disables ap isolation (default); 1 enables ap isolation.
 
+    \item \texttt{doth} \\
+        Optional: Toggle 802.11h mode.
+        0 disables 802.11h (default); 1 enables it.
+
+    \item \texttt{wmm} \\
+        Optional: Toggle 802.11e mode.
+        0 disables 802.11e (default); 1 enables it.
+
 \end{itemize}
 
 \paragraph{Wireless Distribution System}
index 7d56c10e00afc25dbcd732919debdb0438019ceb..985100f6f69b812a188b8abd5cb62e86da624e61 100644 (file)
@@ -125,6 +125,8 @@ enable_broadcom() {
        config_get macaddr "$device" macaddr
        config_get txpower "$device" txpower
        local vif_pre_up vif_post_up vif_do_up vif_txpower
+       local doth=0
+       local wmm=0
 
        _c=0
        nas="$(which nas)"
@@ -139,7 +141,7 @@ enable_broadcom() {
        } || {
                slottime="${slottime:--1}"
        }
-       
+
        case "$macfilter" in
                allow|2)
                        macfilter=2;
@@ -159,7 +161,10 @@ enable_broadcom() {
                append vif_pre_up "vif $_c" "$N"
                append vif_post_up "vif $_c" "$N"
                append vif_do_up "vif $_c" "$N"
-               
+
+               config_get_bool wmm "$vif" wmm "$wmm"
+               config_get_bool doth "$vif" doth "$doth"
+
                [ "$mode" = "sta" ] || {
                        config_get_bool hidden "$vif" hidden 0
                        append vif_pre_up "closed $hidden" "$N"
@@ -282,7 +287,8 @@ ${mssid:+mssid $mssid}
 infra $infra
 ${wet:+wet 1}
 802.11d 0
-802.11h 0
+802.11h ${doth:-0}
+wme ${wmm:-0}
 rxant ${rxantenna:-3}
 txant ${txantenna:-3}
 monitor ${monitor:-0}