From: Jo-Philipp Wich Date: Thu, 8 Sep 2011 23:21:36 +0000 (+0000) Subject: mac80211: introduce "disabled" option for wifi-iface section to shutdown single netwo... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fdfa6fdbcd201cc78aaedbab3da9daaed75ae65d;p=openwrt%2Fstaging%2Fadrian.git mac80211: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio SVN-Revision: 28198 --- diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 9ef1d12623..4b254289d0 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)