mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-17 22:24:04 +02:00
[package] broadcom-wl: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28200 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
df0d5547dd
commit
1a1cc0d6d3
@ -3,12 +3,15 @@ append DRIVERS "broadcom"
|
|||||||
scan_broadcom() {
|
scan_broadcom() {
|
||||||
local device="$1"
|
local device="$1"
|
||||||
local wds
|
local wds
|
||||||
local adhoc sta apmode mon
|
local adhoc sta apmode mon disabled
|
||||||
local adhoc_if sta_if ap_if mon_if
|
local adhoc_if sta_if ap_if mon_if
|
||||||
local _c=0
|
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_bool disabled "$vif" disabled 0
|
||||||
|
[ $disabled -eq 0 ] || continue
|
||||||
|
|
||||||
config_get mode "$vif" mode
|
config_get mode "$vif" mode
|
||||||
_c=$(($_c + 1))
|
_c=$(($_c + 1))
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
|
Loading…
Reference in New Issue
Block a user