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 1e5b0db..65f9637 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