mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
broadcom-wl: only use mssid if necessary (fixes spurious error messages on older hw)
SVN-Revision: 12769
This commit is contained in:
parent
221f4ad32d
commit
ec6c0fdc5e
@ -5,10 +5,12 @@ scan_broadcom() {
|
|||||||
local wds
|
local wds
|
||||||
local adhoc sta apmode mon
|
local adhoc sta apmode mon
|
||||||
local adhoc_if sta_if ap_if mon_if
|
local adhoc_if sta_if ap_if mon_if
|
||||||
|
local _c=0
|
||||||
|
|
||||||
config_get vifs "$device" vifs
|
config_get vifs "$device" vifs
|
||||||
for vif in $vifs; do
|
for vif in $vifs; do
|
||||||
config_get mode "$vif" mode
|
config_get mode "$vif" mode
|
||||||
|
_c=$(($_c + 1))
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
adhoc)
|
adhoc)
|
||||||
adhoc=1
|
adhoc=1
|
||||||
@ -53,7 +55,11 @@ scan_broadcom() {
|
|||||||
|
|
||||||
ap=1
|
ap=1
|
||||||
infra=1
|
infra=1
|
||||||
mssid=1
|
if [ "$_c" -gt 1 ]; then
|
||||||
|
mssid=1
|
||||||
|
else
|
||||||
|
mssid=
|
||||||
|
fi
|
||||||
apsta=0
|
apsta=0
|
||||||
radio=1
|
radio=1
|
||||||
monitor=0
|
monitor=0
|
||||||
|
Loading…
Reference in New Issue
Block a user