From 4803af626010f267f4f86f7e3baab887e27da717 Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 7 Apr 2010 21:35:50 +0000 Subject: [PATCH] [backfire] merge r20740 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@20741 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/broadcom-wl/files/lib/wifi/broadcom.sh | 9 +++++++++ package/broadcom-wl/src/wlc/wlc.c | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh index c444ce8fd..5350df44d 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 <