summaryrefslogtreecommitdiff
path: root/package/hostap-driver
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-09-29 12:37:04 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2011-09-29 12:37:04 +0000
commitf3be1b4890b624c7031681e54f8f24ca0b44196f (patch)
tree4cd816995d91d5453783336e3d6f7a9adf9a00d2 /package/hostap-driver
parentf8bfab96cb93a50ff30dbd8a3e2421fabf5f7299 (diff)
downloadmtk-20170518-f3be1b4890b624c7031681e54f8f24ca0b44196f.zip
mtk-20170518-f3be1b4890b624c7031681e54f8f24ca0b44196f.tar.gz
mtk-20170518-f3be1b4890b624c7031681e54f8f24ca0b44196f.tar.bz2
hostap-driver: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28318
Diffstat (limited to 'package/hostap-driver')
-rwxr-xr-xpackage/hostap-driver/files/lib/wifi/hostap.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh
index 820a2e7..1491c6d 100755
--- a/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -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)