ath5k: Use EWMA factor of 1024 instead of 1000
authorBruno Randolf <br1@einfach.org>
Thu, 2 Dec 2010 10:12:31 +0000 (19:12 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Dec 2010 20:58:43 +0000 (15:58 -0500)
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>
drivers/net/wireless/ath/ath5k/base.c

index 0a7071a6dd7a941a692a225a9023a743e362dfdb..5ece947083714d463dec3dd18a342f912d2ddc58 100644 (file)
@@ -2685,7 +2685,7 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,
        ah->ah_cal_next_full = jiffies;
        ah->ah_cal_next_ani = jiffies;
        ah->ah_cal_next_nf = jiffies;
-       ewma_init(&ah->ah_beacon_rssi_avg, 1000, 8);
+       ewma_init(&ah->ah_beacon_rssi_avg, 1024, 8);
 
        /*
         * Change channels and update the h/w rate map if we're switching;