diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-09-08 23:31:42 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-09-08 23:31:42 +0000 |
commit | df0d5547ddabc363ba3810a0b328944ccd94a7e2 (patch) | |
tree | 4f127c79e05cdb57dfda6bf08ed721dd60bbc037 /package/madwifi/files | |
parent | 83b3afb1c9a3bd8cd6a0fbfcff8008403ff5dfad (diff) |
[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
Diffstat (limited to 'package/madwifi/files')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 6 |
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}" |