aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostap-driver/files
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-09-29 12:37:04 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2011-09-29 12:37:04 +0000
commit3587da79654173dcb4ed64b261554ffe3a5b1b9e (patch)
tree01114df7f690b123744ee0c7f6986170532637c3 /package/hostap-driver/files
parenta798275ce218b915b96d0251e45c7ebba7ed08ba (diff)
downloadupstream-3587da79654173dcb4ed64b261554ffe3a5b1b9e.tar.gz
upstream-3587da79654173dcb4ed64b261554ffe3a5b1b9e.tar.bz2
upstream-3587da79654173dcb4ed64b261554ffe3a5b1b9e.zip
[package] hostap-driver: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28318 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostap-driver/files')
-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 820a2e7861..1491c6d54a 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)