[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101202101231.22988.33396.stgit@localhost6.localdomain6>
Date: Thu, 02 Dec 2010 19:12:31 +0900
From: Bruno Randolf <br1@...fach.org>
To: linville@...driver.com
Cc: randy.dunlap@...cle.com, br1@...nktube.com, peterz@...radead.org,
blp@...stanford.edu, linux-wireless@...r.kernel.org,
linux-kernel@...r.kernel.org, Lars_Ericsson@...ia.com, j@...fi,
stefanr@...6.in-berlin.de, kosaki.motohiro@...fujitsu.com,
akpm@...ux-foundation.org, kevin.granade@...il.com,
johannes@...solutions.net
Subject: [PATCH 1/3] 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@...fach.org>
---
drivers/net/wireless/ath/ath5k/base.c | 2 +-
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 a8d380a..25db9eb 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2536,7 +2536,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists