aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-09 20:47:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-09 20:47:28 +0000
commit6134e99beee0ef8c7fc831e6422f7b0db7580b69 (patch)
tree92cbf6e974b59f750ad147d333e9f0e1babbea85 /package
parent222390bafc58e2ee30f29f678436bdd8e5b608d6 (diff)
downloadupstream-6134e99beee0ef8c7fc831e6422f7b0db7580b69.tar.gz
upstream-6134e99beee0ef8c7fc831e6422f7b0db7580b69.tar.bz2
upstream-6134e99beee0ef8c7fc831e6422f7b0db7580b69.zip
broadcom-wl: fix 11bg hwmode, add lrs mode
SVN-Revision: 20768
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 5350df44d4..bfb7ed25ee 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -162,8 +162,10 @@ enable_broadcom() {
case "$hwmode" in
*b) hwmode=0;;
+ *bg) hwmode=1;;
*g) hwmode=2;;
*gst) hwmode=4;;
+ *lrs) hwmode=5;;
*) hwmode=1;;
esac
@@ -246,7 +248,7 @@ enable_broadcom() {
append vif_do_up "wpa_auth $auth" "$N"
append vif_do_up "wsec_restrict $wsec_r" "$N"
append vif_do_up "eap_restrict $eap_r" "$N"
-
+
config_get ssid "$vif" ssid
append vif_post_up "vlan_mode 0" "$N"
append vif_post_up "ssid $ssid" "$N"
@@ -264,9 +266,9 @@ enable_broadcom() {
append vif_pre_up "allow_mode 1" "$N"
}
} || append vif_pre_up "allow_mode 0" "$N"
-
+
append vif_post_up "enabled 1" "$N"
-
+
config_get ifname "$vif" ifname
#append if_up "ifconfig $ifname up" ";$N"
@@ -286,7 +288,7 @@ enable_broadcom() {
[ -z "$bridge" ] || {
append vif_post_up "supplicant 1" "$N"
append vif_post_up "passphrase $key" "$N"
-
+
use_nas=0
}
}