[backfire] backport: "[package] hostap-driver: introduce "disabled" option for wifi...
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Thu, 29 Sep 2011 23:50:25 +0000 (23:50 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Thu, 29 Sep 2011 23:50:25 +0000 (23:50 +0000)
SVN-Revision: 28320

package/hostap-driver/files/lib/wifi/hostap.sh

index 0c7a9d37b46595fee3a4dd08e98ea7a55ac9c8ba..376bc7b1df0d036cb319a770de917cce31d45f3f 100755 (executable)
@@ -9,6 +9,9 @@ scan_prism2() {
        config_get vifs "$device" vifs
        local _c=0
        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)