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 b08abb33372f8f0bfe83e59c766a1aaaa55aa66a..13c519225d28d23ea1904a3a1da5861817dff833 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%%.*}"