mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 20:09:55 +02:00
[package] mac80211: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28198 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5e06206a4d
commit
83b3afb1c9
@ -206,10 +206,13 @@ find_mac80211_phy() {
|
||||
|
||||
scan_mac80211() {
|
||||
local device="$1"
|
||||
local adhoc sta ap monitor mesh
|
||||
local adhoc sta ap monitor mesh disabled
|
||||
|
||||
config_get vifs "$device" vifs
|
||||
for vif in $vifs; do
|
||||
config_get_bool disabled "$vif" disabled 0
|
||||
[ $disabled = 0 ] || continue
|
||||
|
||||
config_get mode "$vif" mode
|
||||
case "$mode" in
|
||||
adhoc|sta|ap|monitor|mesh)
|
||||
|
Loading…
Reference in New Issue
Block a user