[8.09] madwifi: merge r15713 and r15824
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 6 Jul 2009 22:45:18 +0000 (22:45 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 6 Jul 2009 22:45:18 +0000 (22:45 +0000)
SVN-Revision: 16722

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

index b08abb3..13c5192 100755 (executable)
@@ -221,7 +221,7 @@ enable_atheros() {
                [ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&-
 
                config_get distance "$device" distance
-               [ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&-
+               [ -n "$distance" ] && sysctl -w dev."$device".distance="$distance" >&-
 
                config_get rate "$vif" rate
                [ -n "$rate" ] && iwconfig "$ifname" rate "${rate%%.*}"