summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/574-ath9k_fix_tuning_caps.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-11 16:45:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-11 16:45:58 +0000
commitd23e0491f025a7140202eaeef9e8f6936fb90fa4 (patch)
treeeaecd49a85edb7ffad9933ce90a2eeb427834dbe /package/mac80211/patches/574-ath9k_fix_tuning_caps.patch
parent883e3080165380a65f58842a0e7f833040d3f033 (diff)
downloadmaster-31e0f0ae-d23e0491f025a7140202eaeef9e8f6936fb90fa4.tar.gz
master-31e0f0ae-d23e0491f025a7140202eaeef9e8f6936fb90fa4.tar.bz2
master-31e0f0ae-d23e0491f025a7140202eaeef9e8f6936fb90fa4.zip
ath9k: add a number of ar93xx eeprom related fixes / enhancements
SVN-Revision: 32669
Diffstat (limited to 'package/mac80211/patches/574-ath9k_fix_tuning_caps.patch')
-rw-r--r--package/mac80211/patches/574-ath9k_fix_tuning_caps.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/mac80211/patches/574-ath9k_fix_tuning_caps.patch b/package/mac80211/patches/574-ath9k_fix_tuning_caps.patch
new file mode 100644
index 0000000000..42dc8bdac2
--- /dev/null
+++ b/package/mac80211/patches/574-ath9k_fix_tuning_caps.patch
@@ -0,0 +1,22 @@
+--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
++++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+@@ -3890,6 +3890,9 @@ static void ar9003_hw_apply_tuning_caps(
+ struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep;
+ u8 tuning_caps_param = eep->baseEepHeader.params_for_tuning_caps[0];
+
++ if (AR_SREV_9485(ah) || AR_SREV_9330(ah) || AR_SREV_9340(ah))
++ return;
++
+ if (eep->baseEepHeader.featureEnable & 0x40) {
+ tuning_caps_param &= 0x7f;
+ REG_RMW_FIELD(ah, AR_CH0_XTAL, AR_CH0_XTAL_CAPINDAC,
+@@ -3987,8 +3990,7 @@ static void ath9k_hw_ar9300_set_board_va
+ ar9003_hw_quick_drop_apply(ah, chan->channel);
+ if (!AR_SREV_9330(ah) && !AR_SREV_9340(ah) && !AR_SREV_9550(ah))
+ ar9003_hw_internal_regulator_apply(ah);
+- if (AR_SREV_9485(ah) || AR_SREV_9330(ah) || AR_SREV_9340(ah))
+- ar9003_hw_apply_tuning_caps(ah);
++ ar9003_hw_apply_tuning_caps(ah);
+ ar9003_hw_txend_to_xpa_off_apply(ah, is2ghz);
+ }
+