summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-17 04:19:56 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-17 04:19:56 +0000
commit4822dacdd483b62f17d487f3c6f8b1bed2fcdeba (patch)
treec998108d69ea9e1e20eb1983ab327a39bf8058a2
parent3e3c12b84be7e7a75c08c5e436f9065e71cdff16 (diff)
client mode fixes for broadcom wl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5548 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 27d9ca6be7..397932e2aa 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -2,7 +2,9 @@ append DRIVERS "broadcom"
scan_broadcom() {
local device="$1"
- local wds=
+ local wds
+ local adhoc sta apmode
+ local adhoc_if sta_if ap_if
config_get vifs "$device" vifs
for vif in $vifs; do
@@ -17,7 +19,7 @@ scan_broadcom() {
sta_if="$vif"
;;
ap)
- ap=1
+ apmode=1
ap_if="${ap_if:+$ap_if }$vif"
;;
wds)
@@ -46,7 +48,7 @@ scan_broadcom() {
mssid=1
apsta=0
radio=1
- case "$adhoc:$sta:$ap" in
+ case "$adhoc:$sta:$apmode" in
1*)
ap=0
mssid=0
@@ -167,8 +169,8 @@ enable_broadcom() {
wlc stdin <<EOF
$ifdown
-mssid $mssid
ap $ap
+mssid $mssid
apsta $apsta
infra $infra
${wet:+wet 1}