From: Felix Fietkau <nbd@openwrt.org>
To: linux-wireless@vger.kernel.org
Cc: linville@tuxdriver.com, mcgrof@qca.qualcomm.com
Subject: [PATCH 3.6 2/4] ath9k_hw: clear the AM2PM predistortion mask on AR933x
Date: Tue, 7 Aug 2012 15:06:10 +0200 [thread overview]
Message-ID: <1344344772-49459-2-git-send-email-nbd@openwrt.org> (raw)
In-Reply-To: <1344344772-49459-1-git-send-email-nbd@openwrt.org>
That predistortion type is not supported
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
drivers/net/wireless/ath/ath9k/ar9003_paprd.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
index 2c9f7d7..2173bd7 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_paprd.c
@@ -142,6 +142,7 @@ static int ar9003_paprd_setup_single_table(struct ath_hw *ah)
};
int training_power;
int i, val;
+ u32 am2pm_mask = ah->paprd_ratemask;
if (IS_CHAN_2GHZ(ah->curchan))
training_power = ar9003_get_training_power_2g(ah);
@@ -158,10 +159,13 @@ static int ar9003_paprd_setup_single_table(struct ath_hw *ah)
}
ah->paprd_training_power = training_power;
+ if (AR_SREV_9330(ah))
+ am2pm_mask = 0;
+
REG_RMW_FIELD(ah, AR_PHY_PAPRD_AM2AM, AR_PHY_PAPRD_AM2AM_MASK,
ah->paprd_ratemask);
REG_RMW_FIELD(ah, AR_PHY_PAPRD_AM2PM, AR_PHY_PAPRD_AM2PM_MASK,
- ah->paprd_ratemask);
+ am2pm_mask);
REG_RMW_FIELD(ah, AR_PHY_PAPRD_HT40, AR_PHY_PAPRD_HT40_MASK,
ah->paprd_ratemask_ht40);
--
1.7.9.6 (Apple Git-31.1)
next prev parent reply other threads:[~2012-08-08 13:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 13:06 [PATCH 3.6 1/4] ath9k_hw: do not enable the MIB interrupt in the interrupt mask register Felix Fietkau
2012-08-07 13:06 ` Felix Fietkau [this message]
2012-08-07 13:06 ` [PATCH 3.6 3/4] ath9k_hw: calibrate PA input for PA predistortion Felix Fietkau
2012-08-07 13:06 ` [PATCH 3.6 4/4] ath9k_hw: enable PA linearization Felix Fietkau
2012-08-08 14:17 ` Mohammed Shafi
2012-08-08 14:23 ` Felix Fietkau
2012-08-08 14:55 ` Rajkumar Manoharan
2012-08-08 15:12 ` Felix Fietkau
2012-08-08 15:29 ` Rajkumar Manoharan
2012-08-10 18:44 ` John W. Linville
2012-08-09 4:45 ` Mohammed Shafi
2012-08-10 16:14 ` Sujith 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=1344344772-49459-2-git-send-email-nbd@openwrt.org \
--to=nbd@openwrt.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mcgrof@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;
as well as URLs for NNTP newsgroup(s).