[package] hostap-driver: introduce "disabled" option for wifi-iface section to shutdo...
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Thu, 29 Sep 2011 12:37:04 +0000 (12:37 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Thu, 29 Sep 2011 12:37:04 +0000 (12:37 +0000)
SVN-Revision: 28318

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

index 820a2e7861783db0f3635560c6b1eb834eae4d7c..1491c6d54a19bdf02dac916f7f4f4b408b82a0ce 100755 (executable)
@@ -39,6 +39,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)