Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:48261 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137Ab2EXEEx (ORCPT ); Thu, 24 May 2012 00:04:53 -0400 From: Sujith Manoharan MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <20413.45862.125760.415120@gargle.gargle.HOWL> (sfid-20120524_060457_417076_FCBCF274) Date: Thu, 24 May 2012 09:33:50 +0530 To: CC: Subject: [PATCH v2 19/22] ath: do not update cycle counters with sleep mode Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Rajkumar Manoharan When the chip is waking up from sleep state, the cycle counters might have incorrect readings. So it is better not to update those readings with software counters. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 02a8010..3e8bef8 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -101,6 +101,7 @@ void ath9k_ps_wakeup(struct ath_softc *sc) spin_lock(&common->cc_lock); ath_hw_cycle_counters_update(common); memset(&common->cc_survey, 0, sizeof(common->cc_survey)); + memset(&common->cc_ani, 0, sizeof(common->cc_ani)); spin_unlock(&common->cc_lock); } -- 1.7.10.2