aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-07 21:33:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-07 21:33:05 +0000
commitb63c20e20c7570f00d2418195781997249c6baf4 (patch)
tree5eedc1d0ad537733ca93423bdb746bd09212a255 /package/broadcom-wl/files
parentcac4162fa05dc96f4ee66aac105548f55c5f41e7 (diff)
downloadupstream-b63c20e20c7570f00d2418195781997249c6baf4.tar.gz
upstream-b63c20e20c7570f00d2418195781997249c6baf4.tar.bz2
upstream-b63c20e20c7570f00d2418195781997249c6baf4.zip
[brcm-2.4] broadcom-wl: implement "hwmode" uci option, supports 11b (B only), 11g (G only), 11gst (G performance) and 11bg (default)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20740 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index c444ce8fd5..5350df44d4 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -128,6 +128,7 @@ enable_broadcom() {
config_get txpower "$device" txpower
config_get frag "$device" frag
config_get rts "$device" rts
+ config_get hwmode "$device" hwmode
local vif_pre_up vif_post_up vif_do_up vif_txpower
local doth=0
local wmm=0
@@ -159,6 +160,13 @@ enable_broadcom() {
;;
esac
+ case "$hwmode" in
+ *b) hwmode=0;;
+ *g) hwmode=2;;
+ *gst) hwmode=4;;
+ *) hwmode=1;;
+ esac
+
for vif in $vifs; do
config_get vif_txpower "$vif" txpower
@@ -290,6 +298,7 @@ enable_broadcom() {
wlc ifname "$device" stdin <<EOF
$ifdown
+gmode ${hwmode:-1}
apsta $apsta
ap $ap
${mssid:+mssid $mssid}