summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-12 11:41:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-12 11:41:12 +0000
commitc77311f68937d37c4789b1e06a327c1aa0e4a1db (patch)
treefc04fa19c4f29b55cbc65c316785134c635f1a6b /package
parentf3e37c359d5548ce1c50817fc689ea85a4f90476 (diff)
downloadmtk-20170518-c77311f68937d37c4789b1e06a327c1aa0e4a1db.zip
mtk-20170518-c77311f68937d37c4789b1e06a327c1aa0e4a1db.tar.gz
mtk-20170518-c77311f68937d37c4789b1e06a327c1aa0e4a1db.tar.bz2
ath9k: fix initial noise floor calibration on older chips
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41156
Diffstat (limited to 'package')
-rw-r--r--package/kernel/mac80211/patches/567-ath9k_fix_init_nfcal.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/567-ath9k_fix_init_nfcal.patch b/package/kernel/mac80211/patches/567-ath9k_fix_init_nfcal.patch
new file mode 100644
index 0000000..8a4be73
--- /dev/null
+++ b/package/kernel/mac80211/patches/567-ath9k_fix_init_nfcal.patch
@@ -0,0 +1,25 @@
+--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
++++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+@@ -854,6 +854,7 @@ static bool ar9002_hw_init_cal(struct at
+
+ /* Do PA Calibration */
+ ar9002_hw_pa_cal(ah, true);
++ ath9k_hw_start_nfcal(ah, true);
+
+ if (ah->caldata)
+ set_bit(NFCAL_PENDING, &ah->caldata->cal_flags);
+--- a/drivers/net/wireless/ath/ath9k/hw.c
++++ b/drivers/net/wireless/ath/ath9k/hw.c
+@@ -1969,8 +1969,10 @@ int ath9k_hw_reset(struct ath_hw *ah, st
+ if (ath9k_hw_mci_is_enabled(ah))
+ ar9003_mci_check_bt(ah);
+
+- ath9k_hw_loadnf(ah, chan);
+- ath9k_hw_start_nfcal(ah, true);
++ if (AR_SREV_9300_20_OR_LATER(ah)) {
++ ath9k_hw_loadnf(ah, chan);
++ ath9k_hw_start_nfcal(ah, true);
++ }
+
+ if (AR_SREV_9300_20_OR_LATER(ah))
+ ar9003_hw_bb_watchdog_config(ah);