aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-08 23:34:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-08 23:34:13 +0000
commitaa1ec66431ec1916035d9cc798a5deb59df90f28 (patch)
tree0daa0d112bcc2597868d12c22522ffca5b9ae276
parent962d18ed2b2000faef3c8906394e1993898653fb (diff)
downloadupstream-aa1ec66431ec1916035d9cc798a5deb59df90f28.tar.gz
upstream-aa1ec66431ec1916035d9cc798a5deb59df90f28.tar.bz2
upstream-aa1ec66431ec1916035d9cc798a5deb59df90f28.zip
[package] broadcom-wl: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28200 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index 183aa08867..f4d5213969 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -3,12 +3,15 @@ append DRIVERS "broadcom"
scan_broadcom() {
local device="$1"
local wds
- local adhoc sta apmode mon
+ local adhoc sta apmode mon disabled
local adhoc_if sta_if ap_if mon_if
local _c=0
config_get vifs "$device" vifs
for vif in $vifs; do
+ config_get_bool disabled "$vif" disabled 0
+ [ $disabled -eq 0 ] || continue
+
config_get mode "$vif" mode
_c=$(($_c + 1))
case "$mode" in