summaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-25 14:45:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-25 14:45:22 +0000
commit78bd998e49120d309ddfce88de4b2df42bee2646 (patch)
tree935bd041668839c9a12f15892ffe46b0915fdedd /package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch
parenta0d9489e8438190e171eaa33bcb455f88e80427e (diff)
downloadmaster-31e0f0ae-78bd998e49120d309ddfce88de4b2df42bee2646.tar.gz
master-31e0f0ae-78bd998e49120d309ddfce88de4b2df42bee2646.tar.bz2
master-31e0f0ae-78bd998e49120d309ddfce88de4b2df42bee2646.zip
ath9k: add a few calibration related fixes
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43058
Diffstat (limited to 'package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch')
-rw-r--r--package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch b/package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch
index 3b8370dfee..6a27be76bd 100644
--- a/package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch
+++ b/package/kernel/mac80211/patches/330-ath9k-restart-hardware-after-noise-floor-calibration.patch
@@ -164,7 +164,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
void (*set_txdesc)(struct ath_hw *ah, void *ds,
--- a/drivers/net/wireless/ath/ath9k/link.c
+++ b/drivers/net/wireless/ath/ath9k/link.c
-@@ -371,9 +371,14 @@ void ath_ani_calibrate(unsigned long dat
+@@ -371,9 +371,15 @@ void ath_ani_calibrate(unsigned long dat
/* Perform calibration if necessary */
if (longcal || shortcal) {
@@ -174,6 +174,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+ int ret = ath9k_hw_calibrate(ah, ah->curchan, ah->rxchainmask,
+ longcal);
+ if (ret < 0) {
++ common->ani.caldone = 0;
+ ath9k_queue_reset(sc, RESET_TYPE_CALIBRATION);
+ return;
+ }