diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-08 23:34:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-08 23:34:13 +0000 |
commit | 609d072feec74f172f4fadb1f08cfb2d7520b0a6 (patch) | |
tree | 6782c9347ab519fdfce1e3d939e0e3d38f0e07f4 /package/broadcom-wl/files/lib | |
parent | 89e74f6aeadbcd416a5ae2a1a25d55d7daa5b650 (diff) | |
download | upstream-609d072feec74f172f4fadb1f08cfb2d7520b0a6.tar.gz upstream-609d072feec74f172f4fadb1f08cfb2d7520b0a6.tar.bz2 upstream-609d072feec74f172f4fadb1f08cfb2d7520b0a6.zip |
broadcom-wl: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28200
Diffstat (limited to 'package/broadcom-wl/files/lib')
-rw-r--r-- | package/broadcom-wl/files/lib/wifi/broadcom.sh | 5 |
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 |