aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
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
commit89e74f6aeadbcd416a5ae2a1a25d55d7daa5b650 (patch)
tree48ef8c733b319052d22ecbdce6dd27f39909c6e0 /package/madwifi/files
parentfdfa6fdbcd201cc78aaedbab3da9daaed75ae65d (diff)
downloadupstream-89e74f6aeadbcd416a5ae2a1a25d55d7daa5b650.tar.gz
upstream-89e74f6aeadbcd416a5ae2a1a25d55d7daa5b650.tar.bz2
upstream-89e74f6aeadbcd416a5ae2a1a25d55d7daa5b650.zip
madwifi: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28199
Diffstat (limited to 'package/madwifi/files')
-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}"