From: Vasilis Tsiligiannis Date: Thu, 29 Sep 2011 23:50:25 +0000 (+0000) Subject: [backfire] backport: "[package] hostap-driver: introduce "disabled" option for wifi... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d5365fc5d9668f607b100f630abeeb36c015359c;p=openwrt%2Fsvn-archive%2Farchive.git [backfire] backport: "[package] hostap-driver: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio" SVN-Revision: 28320 --- diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh index 0c7a9d37b4..376bc7b1df 100755 --- a/package/hostap-driver/files/lib/wifi/hostap.sh +++ b/package/hostap-driver/files/lib/wifi/hostap.sh @@ -9,6 +9,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)