broadcom-wl: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio

SVN-Revision: 28200
owl
Jo-Philipp Wich 2011-09-08 23:34:13 +00:00
parent 89e74f6aea
commit 609d072fee
1 changed files with 4 additions and 1 deletions

View File

@ -3,12 +3,15 @@ append DRIVERS "broadcom"
scan_broadcom() {
local device="$1"
local wds
local adhoc sta apmode mon
local adhoc sta apmode mon disabled
local adhoc_if sta_if ap_if mon_if
local _c=0
config_get vifs "$device" vifs
for vif in $vifs; do
config_get_bool disabled "$vif" disabled 0
[ $disabled -eq 0 ] || continue
config_get mode "$vif" mode
_c=$(($_c + 1))
case "$mode" in