From patchwork Thu Dec 2 10:12:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 373621 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB2ADols012635 for ; Thu, 2 Dec 2010 10:13:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757373Ab0LBKNM (ORCPT ); Thu, 2 Dec 2010 05:13:12 -0500 Received: from mail30g.wh2.ocn.ne.jp ([220.111.41.239]:5562 "HELO mail30g.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751434Ab0LBKNL (ORCPT ); Thu, 2 Dec 2010 05:13:11 -0500 Received: from vs3005.wh2.ocn.ne.jp (125.206.180.233) by mail30g.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 2-0130894788 for ; Thu, 2 Dec 2010 19:13:09 +0900 (JST) Received: (qmail 97338 invoked from network); 2 Dec 2010 10:13:08 -0000 Received: from unknown (HELO localhost6.localdomain6) (220.110.201.18) by with SMTP; 2 Dec 2010 10:13:08 -0000 Subject: [PATCH 1/3] ath5k: Use EWMA factor of 1024 instead of 1000 To: linville@tuxdriver.com From: Bruno Randolf Cc: randy.dunlap@oracle.com, br1@thinktube.com, peterz@infradead.org, blp@cs.stanford.edu, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Lars_Ericsson@telia.com, j@w1.fi, stefanr@s5r6.in-berlin.de, kosaki.motohiro@jp.fujitsu.com, akpm@linux-foundation.org, kevin.granade@gmail.com, johannes@sipsolutions.net Date: Thu, 02 Dec 2010 19:12:31 +0900 Message-ID: <20101202101231.22988.33396.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 X-SF-Loop: 1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Dec 2010 10:13:50 +0000 (UTC) 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;