aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-13 13:02:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-13 13:02:20 +0000
commitbada31184434f2ec7ae7d53fc4e43970be1f6041 (patch)
tree4511a672a8382939587ea8360f48f0692128b0e8 /package/madwifi/files/lib
parentf9b8d9ebad984eabc42c059c08b77e3cf0ac8307 (diff)
downloadupstream-bada31184434f2ec7ae7d53fc4e43970be1f6041.tar.gz
upstream-bada31184434f2ec7ae7d53fc4e43970be1f6041.tar.bz2
upstream-bada31184434f2ec7ae7d53fc4e43970be1f6041.zip
madwifi: fix distance setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15824 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 1e5b0db4e9..65f9637217 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -219,6 +219,8 @@ enable_atheros() {
[ -n "$antrx" ] && sysctl -w dev."$device".rxantenna="$antrx" >&-
[ -n "$anttx" ] && sysctl -w dev."$device".txantenna="$anttx" >&-
[ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&-
+
+ config_get distance "$device" distance
[ -n "$distance" ] && sysctl -w dev."$device".distance="$distance" >&-
config_get rate "$vif" rate