mac80211: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28198
This commit is contained in:
parent
ba46c7b3c6
commit
fdfa6fdbcd
@ -206,10 +206,13 @@ find_mac80211_phy() {
|
|||||||
|
|
||||||
scan_mac80211() {
|
scan_mac80211() {
|
||||||
local device="$1"
|
local device="$1"
|
||||||
local adhoc sta ap monitor mesh
|
local adhoc sta ap monitor mesh disabled
|
||||||
|
|
||||||
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 = 0 ] || continue
|
||||||
|
|
||||||
config_get mode "$vif" mode
|
config_get mode "$vif" mode
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
adhoc|sta|ap|monitor|mesh)
|
adhoc|sta|ap|monitor|mesh)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user