summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2008-09-25 19:19:32 +0000
committerTravis Kemen <thepeople@openwrt.org>2008-09-25 19:19:32 +0000
commitb42c11bb48645f5dfcc6a43c6b3fcd38ab9e7197 (patch)
tree7584f611e6d70cc990d2b139d98ef1577a2ab1c0 /package
parent3c8963aa9b8b84b8606d45c71cddf405c9842328 (diff)
downloadmtk-20170518-b42c11bb48645f5dfcc6a43c6b3fcd38ab9e7197.zip
mtk-20170518-b42c11bb48645f5dfcc6a43c6b3fcd38ab9e7197.tar.gz
mtk-20170518-b42c11bb48645f5dfcc6a43c6b3fcd38ab9e7197.tar.bz2
add option to shutoff softled
SVN-Revision: 12709
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index a3bab5b..1f540a0 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -182,6 +182,9 @@ enable_atheros() {
config_get distance "$device" distance
[ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&-
+ config_get_bool softled "$device" softled 1
+ [ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&-
+
config_get txpwr "$vif" txpower
[ -n "$txpwr" ] && iwconfig "$ifname" txpower "${txpwr%%.*}"