aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-12-02 05:12:31 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-06 15:58:43 -0500
commit5dcc03fe29537edd7819f5b121bf3d779693f37b (patch)
treeb4d889edcd2ace9fa6134ec696f547799b9e6717
parent9a10a870e09f1fd50fd024d55232b4b72cf4e387 (diff)
ath5k: Use EWMA factor of 1024 instead of 1000
This prepares the only place which uses the EWMA library so far for the performance improved implementation coming up, which requires factor and weight to be a power of two. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 0a7071a6dd7a..5ece94708371 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2685,7 +2685,7 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,
2685 ah->ah_cal_next_full = jiffies; 2685 ah->ah_cal_next_full = jiffies;
2686 ah->ah_cal_next_ani = jiffies; 2686 ah->ah_cal_next_ani = jiffies;
2687 ah->ah_cal_next_nf = jiffies; 2687 ah->ah_cal_next_nf = jiffies;
2688 ewma_init(&ah->ah_beacon_rssi_avg, 1000, 8); 2688 ewma_init(&ah->ah_beacon_rssi_avg, 1024, 8);
2689 2689
2690 /* 2690 /*
2691 * Change channels and update the h/w rate map if we're switching; 2691 * Change channels and update the h/w rate map if we're switching;