madwifi: fix distance setting
authorFelix Fietkau <nbd@openwrt.org>
Wed, 13 May 2009 13:02:20 +0000 (13:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 13 May 2009 13:02:20 +0000 (13:02 +0000)
SVN-Revision: 15824

package/madwifi/files/lib/wifi/madwifi.sh

index 1e5b0db4e9dd9df8144f8251452439e8754ce3db..65f9637217ac39321646b06f40135cdab936f562 100755 (executable)
@@ -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