summaryrefslogtreecommitdiff
path: root/package/broadcom-wl/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-17 04:19:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-17 04:19:56 +0000
commite99fcb6c2557cfa6f43e1c1436a2cdd1a659fc75 (patch)
tree30e4b05f3ad7facc3c6f47f11b9abc9a5554bfe8 /package/broadcom-wl/files
parentebae27c573ca216ddb749418039b8f344cdc608e (diff)
downloadmtk-20170518-e99fcb6c2557cfa6f43e1c1436a2cdd1a659fc75.zip
mtk-20170518-e99fcb6c2557cfa6f43e1c1436a2cdd1a659fc75.tar.gz
mtk-20170518-e99fcb6c2557cfa6f43e1c1436a2cdd1a659fc75.tar.bz2
client mode fixes for broadcom wl
SVN-Revision: 5548
Diffstat (limited to 'package/broadcom-wl/files')
-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 27d9ca6..397932e 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}