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

package/mac80211/files/lib/wifi/mac80211.sh

index 9ef1d12623054e7d20d499b7b2d27ff6bbd05aa5..4b254289d0d8f1f7ab341dcb01a4903fca5afa23 100644 (file)
@@ -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)