diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-09-08 23:21:36 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-09-08 23:21:36 +0000 |
commit | 83b3afb1c9a3bd8cd6a0fbfcff8008403ff5dfad (patch) | |
tree | a24e155d5f14cece83824a912ffcba50715871df /package/mac80211/files | |
parent | 5e06206a4d3f12b4d47d6f07119f629a5ef9fb01 (diff) |
[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
Diffstat (limited to 'package/mac80211/files')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 5 |
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 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) |