summaryrefslogtreecommitdiff
path: root/package/broadcom-wl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-28 18:30:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-28 18:30:23 +0000
commitec6c0fdc5eb42a87d2bb137aca757ff6de983899 (patch)
treeb153e0fb693fca0ec5baabcae816ca0b11632a94 /package/broadcom-wl
parent221f4ad32d94481baf53885553a4fb3feda22965 (diff)
downloadmtk-20170518-ec6c0fdc5eb42a87d2bb137aca757ff6de983899.zip
mtk-20170518-ec6c0fdc5eb42a87d2bb137aca757ff6de983899.tar.gz
mtk-20170518-ec6c0fdc5eb42a87d2bb137aca757ff6de983899.tar.bz2
broadcom-wl: only use mssid if necessary (fixes spurious error messages on older hw)
SVN-Revision: 12769
Diffstat (limited to 'package/broadcom-wl')
-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 5ea82a1..ece3a69 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