1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 17:40:16 +02:00

[package] broadcom-wl: fix 11bg hwmode, add lrs mode

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20768 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2010-04-09 20:47:28 +00:00
parent 37ed3994c5
commit 1603982ee3

View File

@ -162,8 +162,10 @@ enable_broadcom() {
case "$hwmode" in case "$hwmode" in
*b) hwmode=0;; *b) hwmode=0;;
*bg) hwmode=1;;
*g) hwmode=2;; *g) hwmode=2;;
*gst) hwmode=4;; *gst) hwmode=4;;
*lrs) hwmode=5;;
*) hwmode=1;; *) hwmode=1;;
esac esac
@ -246,7 +248,7 @@ enable_broadcom() {
append vif_do_up "wpa_auth $auth" "$N" append vif_do_up "wpa_auth $auth" "$N"
append vif_do_up "wsec_restrict $wsec_r" "$N" append vif_do_up "wsec_restrict $wsec_r" "$N"
append vif_do_up "eap_restrict $eap_r" "$N" append vif_do_up "eap_restrict $eap_r" "$N"
config_get ssid "$vif" ssid config_get ssid "$vif" ssid
append vif_post_up "vlan_mode 0" "$N" append vif_post_up "vlan_mode 0" "$N"
append vif_post_up "ssid $ssid" "$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 1" "$N"
} }
} || append vif_pre_up "allow_mode 0" "$N" } || append vif_pre_up "allow_mode 0" "$N"
append vif_post_up "enabled 1" "$N" append vif_post_up "enabled 1" "$N"
config_get ifname "$vif" ifname config_get ifname "$vif" ifname
#append if_up "ifconfig $ifname up" ";$N" #append if_up "ifconfig $ifname up" ";$N"
@ -286,7 +288,7 @@ enable_broadcom() {
[ -z "$bridge" ] || { [ -z "$bridge" ] || {
append vif_post_up "supplicant 1" "$N" append vif_post_up "supplicant 1" "$N"
append vif_post_up "passphrase $key" "$N" append vif_post_up "passphrase $key" "$N"
use_nas=0 use_nas=0
} }
} }