Skip to content

Commit 1df85ec

Browse files
erikarnlinvjw
authored andcommitted
ath9k: Fix AR9287 calibration
The AR9287 calibration code was not being called because of an incorrect MAC revision check. This forced the AR9287 to use the AR9285 initial calibration code and bypass the AR9287 code entirely. Signed-off-by: Adrian Chadd <adrian@freebsd.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 64c754e commit 1df85ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/ath/ath9k/ar9002_calib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan)
829829
if (AR_SREV_9271(ah)) {
830830
if (!ar9285_hw_cl_cal(ah, chan))
831831
return false;
832-
} else if (AR_SREV_9285_12_OR_LATER(ah)) {
832+
} else if (AR_SREV_9285(ah) && AR_SREV_9285_12_OR_LATER(ah)) {
833833
if (!ar9285_hw_clc(ah, chan))
834834
return false;
835835
} else {

0 commit comments

Comments
 (0)