diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-08-06 22:11:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-08-06 22:11:30 +0000 |
commit | a55de42c7d911dae01c9a31b15e70f550e81df49 (patch) | |
tree | ba169773ca1dad4cc649dadaf53c4322f1d4fb6d /package/mac80211/patches/570-ath9k_paprd_hornet_mask.patch | |
parent | 74c27a1a9281c6fdc9a3987c8a8629654f0f2914 (diff) | |
download | upstream-a55de42c7d911dae01c9a31b15e70f550e81df49.tar.gz upstream-a55de42c7d911dae01c9a31b15e70f550e81df49.tar.bz2 upstream-a55de42c7d911dae01c9a31b15e70f550e81df49.zip |
ath9k: extend and enable PA predistortion
SVN-Revision: 33031
Diffstat (limited to 'package/mac80211/patches/570-ath9k_paprd_hornet_mask.patch')
-rw-r--r-- | package/mac80211/patches/570-ath9k_paprd_hornet_mask.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/mac80211/patches/570-ath9k_paprd_hornet_mask.patch b/package/mac80211/patches/570-ath9k_paprd_hornet_mask.patch new file mode 100644 index 0000000000..90e3ef2ac8 --- /dev/null +++ b/package/mac80211/patches/570-ath9k_paprd_hornet_mask.patch @@ -0,0 +1,25 @@ +--- 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_tab + }; + 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_tab + } + 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); + |