linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3.1] ath9k_hw: fix calibration on 5 ghz
@ 2011-08-29  8:06 Felix Fietkau
  2011-08-29  9:01 ` Adrian Chadd
  0 siblings, 1 reply; 8+ messages in thread
From: Felix Fietkau @ 2011-08-29  8:06 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville, mcgrof, adrian

ADC calibrations cannot run on 5 GHz with fast clock enabled. They
need to be disabled, otherwise they'll hang and IQ mismatch calibration
will not be run either.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Adrian Chadd <adrian@freebsd.org>
Cc: stable@kernel.org
---
 drivers/net/wireless/ath/ath9k/ar9002_calib.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
index 2d4c091..2d394af 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
@@ -41,7 +41,8 @@ static bool ar9002_hw_is_cal_supported(struct ath_hw *ah,
 	case ADC_DC_CAL:
 		/* Run ADC Gain Cal for non-CCK & non 2GHz-HT20 only */
 		if (!IS_CHAN_B(chan) &&
-		    !(IS_CHAN_2GHZ(chan) && IS_CHAN_HT20(chan)))
+		    !((IS_CHAN_2GHZ(chan) || IS_CHAN_A_FAST_CLOCK(ah, chan)) &&
+		      IS_CHAN_HT20(chan)))
 			supported = true;
 		break;
 	}
-- 
1.7.3.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-30 16:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-29  8:06 [PATCH 3.1] ath9k_hw: fix calibration on 5 ghz Felix Fietkau
2011-08-29  9:01 ` Adrian Chadd
2011-08-29 10:14   ` Jorge Boncompte [DTI2]
2011-08-30 10:44     ` Rajkumar Manoharan
2011-08-30 10:47       ` Adrian Chadd
2011-08-30 11:27         ` Jorge Boncompte [DTI2]
2011-08-30 11:48           ` Rajkumar Manoharan
2011-08-30 16:38   ` Felix Fietkau

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).