Return-path: Received: from mail-pw0-f46.google.com ([209.85.160.46]:56371 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755781Ab1EZMPl convert rfc822-to-8bit (ORCPT ); Thu, 26 May 2011 08:15:41 -0400 Received: by pwi15 with SMTP id 15so306329pwi.19 for ; Thu, 26 May 2011 05:15:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 26 May 2011 17:45:41 +0530 Message-ID: (sfid-20110526_141605_790611_9CFD1118) Subject: Re: [ath9k-devel] [PATCH] ath9k: Fix Kiwi (AR9287) initial calibration From: Mohammed Shafi To: Adrian Chadd Cc: linux-wireless@vger.kernel.org, ath9k-devel Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, May 26, 2011 at 10:30 AM, Adrian Chadd wrote: > Hi, > > The AR9287 initial calibration in ar9002_hw_init_cal() isn't ever > called because the Kite check (AR_SREV_9285_12_OR_LATER()) matches on > MACs versioned Kite and later. Adrian this change looks logically correct. but as there were lot of regwrites in the original path, I am not sure how this change will effect the throughput especially in noisy environment conditions/stress testing. > > The Atheros newma code checks it is Kite as well as being Kite >= 1.2. > > I don't currently have Linux ath9k on something with an AR9287 so I'd > appreciate it if this were verified by someone who has. > > The patch is quite simple: > > diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c > b/drivers/net/wireless/ath/ath9k/ar9002_calib.c > index 015d974..2d4c091 100644 > --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c > +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c > @@ -829,7 +829,7 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah, > struct ath9k_channel *chan) > ? ? ? ?if (AR_SREV_9271(ah)) { > ? ? ? ? ? ? ? ?if (!ar9285_hw_cl_cal(ah, chan)) > ? ? ? ? ? ? ? ? ? ? ? ?return false; > - ? ? ? } else if (AR_SREV_9285_12_OR_LATER(ah)) { > + ? ? ? } else if (AR_SREV_9285(ah) && AR_SREV_9285_12_OR_LATER(ah)) { > ? ? ? ? ? ? ? ?if (!ar9285_hw_clc(ah, chan)) > ? ? ? ? ? ? ? ? ? ? ? ?return false; > ? ? ? ?} else { > > Thanks, > > > Adrian > _______________________________________________ > ath9k-devel mailing list > ath9k-devel@lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel >