[package] hostap-driver: introduce "disabled" option for wifi-iface section to shutdo...
[openwrt.git] / package / hostap-driver / files / lib / wifi / hostap.sh
index 9d19453..1491c6d 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)
@@ -246,7 +249,6 @@ detect_prism2() {
                config_foreach check_prism2_device wifi-device
                [ "$found" -gt 0 ] && continue
                cat <<EOF
-
 config wifi-device radio$devidx
        option type     prism2
        option channel  11
This page took 0.026734 seconds and 4 git commands to generate.