aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-08 23:31:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-08 23:31:42 +0000
commit962d18ed2b2000faef3c8906394e1993898653fb (patch)
tree4f127c79e05cdb57dfda6bf08ed721dd60bbc037
parent20cdb18e726548db86251a3d3f4e8f6311a6d7a9 (diff)
downloadupstream-962d18ed2b2000faef3c8906394e1993898653fb.tar.gz
upstream-962d18ed2b2000faef3c8906394e1993898653fb.tar.bz2
upstream-962d18ed2b2000faef3c8906394e1993898653fb.zip
[package] madwifi: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28199 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index bd93d47369..93e68f51e8 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -28,13 +28,15 @@ find_atheros_phy() {
scan_atheros() {
local device="$1"
local wds
- local adhoc ahdemo sta ap monitor
+ local adhoc ahdemo sta ap monitor disabled
[ ${device%[0-9]} = "wifi" ] && config_set "$device" phy "$device"
config_get vifs "$device" vifs
for vif in $vifs; do
-
+ config_get_bool disabled "$vif" disabled 0
+ [ $disabled = 0 ] || continue
+
config_get ifname "$vif" ifname
config_set "$vif" ifname "${ifname:-ath}"