From: "John W. Linville" <linville@tuxdriver.com>
To: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Cc: linux-wireless@vger.kernel.org,
Madhan Jaganathan <madhanj@qca.qualcomm.com>,
Kai Shi <kaishi@qca.qualcomm.com>
Subject: Re: [PATCH] Revert "ath9k_hw: Fix incorrect spur_freq_sd for AR9003"
Date: Mon, 30 Apr 2012 14:22:01 -0400 [thread overview]
Message-ID: <20120430182200.GC2560@tuxdriver.com> (raw)
In-Reply-To: <1335594521-1963-1-git-send-email-rmanohar@qca.qualcomm.com>
On Sat, Apr 28, 2012 at 11:58:41AM +0530, Rajkumar Manoharan wrote:
> This reverts commit a844adfd7bee4edc66d337de6c33b348e83552a8.
>
> spur_freq_sd (for self-corr in AGC) is defined with respect to the
> center of each 20MHz channel while spur_phase_delta (for self-corr
> in Rx and spur data filter) is defined with respect to the center
> of current RF channel.
>
> So in short, we need to subtract spur_freq_sd (for self-corr in AGC)
> by the offset between the center of primary20 and the center of RF
> channel in SW. This offset could be +/10 MHz for dynamic 40.
>
> Cc: Madhan Jaganathan <madhanj@qca.qualcomm.com>
> Signed-off-by: Kai Shi <kaishi@qca.qualcomm.com>
> Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
What actual bug is this causing? Should this be applied to 3.4?
> ---
> drivers/net/wireless/ath/ath9k/ar9003_phy.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> index 5358553..11abb97 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
> @@ -373,7 +373,7 @@ static void ar9003_hw_spur_ofdm_work(struct ath_hw *ah,
> else
> spur_subchannel_sd = 0;
>
> - spur_freq_sd = (freq_offset << 9) / 11;
> + spur_freq_sd = ((freq_offset + 10) << 9) / 11;
>
> } else {
> if (REG_READ_FIELD(ah, AR_PHY_GEN_CTRL,
> @@ -382,7 +382,7 @@ static void ar9003_hw_spur_ofdm_work(struct ath_hw *ah,
> else
> spur_subchannel_sd = 1;
>
> - spur_freq_sd = (freq_offset << 9) / 11;
> + spur_freq_sd = ((freq_offset - 10) << 9) / 11;
>
> }
>
> --
> 1.7.10
>
>
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
next prev parent reply other threads:[~2012-04-30 18:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-28 6:28 [PATCH] Revert "ath9k_hw: Fix incorrect spur_freq_sd for AR9003" Rajkumar Manoharan
2012-04-30 18:22 ` John W. Linville [this message]
2012-05-01 3:21 ` Rajkumar Manoharan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120430182200.GC2560@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=kaishi@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=madhanj@qca.qualcomm.com \
--cc=rmanohar@qca.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox