[backfire] merge r28199
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Sep 2011 02:53:37 +0000 (02:53 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Sep 2011 02:53:37 +0000 (02:53 +0000)
SVN-Revision: 28284

package/madwifi/files/lib/wifi/madwifi.sh

index 51b60bc5dfc4611ee41735c7a9d267183256c2e4..564741b7edb89b2433cefd48e7c90b3b85f94129 100755 (executable)
@@ -4,11 +4,13 @@ append DRIVERS "atheros"
 scan_atheros() {
        local device="$1"
        local wds
-       local adhoc ahdemo sta ap monitor
+       local adhoc ahdemo sta ap monitor disabled
        
        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}"