summaryrefslogtreecommitdiff
path: root/package/mac80211/files/lib/wifi/mac80211.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-08 23:21:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-08 23:21:36 +0000
commitfdfa6fdbcd201cc78aaedbab3da9daaed75ae65d (patch)
tree760dbf5a264b81d9be7c02b23148e05324a7d710 /package/mac80211/files/lib/wifi/mac80211.sh
parentba46c7b3c68c8a00f657480248077f74426dde89 (diff)
downloadmtk-20170518-fdfa6fdbcd201cc78aaedbab3da9daaed75ae65d.zip
mtk-20170518-fdfa6fdbcd201cc78aaedbab3da9daaed75ae65d.tar.gz
mtk-20170518-fdfa6fdbcd201cc78aaedbab3da9daaed75ae65d.tar.bz2
mac80211: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28198
Diffstat (limited to 'package/mac80211/files/lib/wifi/mac80211.sh')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 9ef1d12..4b25428 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -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)