summaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/files/lib
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-09-28 18:30:23 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-09-28 18:30:23 +0000
commitbaf609d512de12afdfdec9723b6d79a6cd8e61f9 (patch)
tree9b6b33885fecf5a5eae8f772c9b4b8a4d0a986e0 /package/broadcom-wl/files/lib
parent23ab7d24d719e32a6eff8d6537c0c4ed74c5edbb (diff)
broadcom-wl: only use mssid if necessary (fixes spurious error messages on older hw)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12769 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/files/lib')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 5ea82a1b8..ece3a6961 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -5,10 +5,12 @@ scan_broadcom() {
local wds
local adhoc sta apmode mon
local adhoc_if sta_if ap_if mon_if
+ local _c=0
config_get vifs "$device" vifs
for vif in $vifs; do
config_get mode "$vif" mode
+ _c=$(($_c + 1))
case "$mode" in
adhoc)
adhoc=1
@@ -53,7 +55,11 @@ scan_broadcom() {
ap=1
infra=1
- mssid=1
+ if [ "$_c" -gt 1 ]; then
+ mssid=1
+ else
+ mssid=
+ fi
apsta=0
radio=1
monitor=0