summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-04-22 10:57:46 +0000
committeradrian <adrian@FreeBSD.org>2011-04-22 10:57:46 +0000
commit28c3e6a80d05122a7836cb8c5838eebae9c11170 (patch)
tree327b8a2ff7ec31420fed05ac5ab9e6d622677800
parente383f1dc17c2a1cde6ee2daa1611de1e9869706c (diff)
downloadFreeBSD-src-28c3e6a80d05122a7836cb8c5838eebae9c11170.zip
FreeBSD-src-28c3e6a80d05122a7836cb8c5838eebae9c11170.tar.gz
Bring over a pdadc calibration fix from ath9k - unused power detector
gain values should be 58, not the previous values. Obtained From: linux ath9k
-rw-r--r--sys/dev/ath/ath_hal/ah_eeprom_v4k.h2
-rw-r--r--sys/dev/ath/ath_hal/ar9002/ar9285_reset.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v4k.h b/sys/dev/ath/ath_hal/ah_eeprom_v4k.h
index fa16ad9..3487de4 100644
--- a/sys/dev/ath/ath_hal/ah_eeprom_v4k.h
+++ b/sys/dev/ath/ath_hal/ah_eeprom_v4k.h
@@ -29,6 +29,8 @@
#define AR9285_RDEXT_DEFAULT 0x1F
+#define AR5416_4K_EEP_PD_GAIN_BOUNDARY_DEFAULT 58
+
#undef owl_eep_start_loc
#ifdef __LINUX_ARM_ARCH__ /* AP71 */
#define owl_eep_start_loc 0
diff --git a/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c b/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c
index 1b1c10e..1f7bdd3 100644
--- a/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c
+++ b/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c
@@ -871,7 +871,7 @@ ar9285GetGainBoundariesAndPdadcs(struct ath_hal *ah,
/* Fill out pdGainBoundaries - only up to 2 allowed here, but hardware allows up to 4 */
while (i < AR5416_PD_GAINS_IN_MASK) {
- pPdGainBoundaries[i] = pPdGainBoundaries[i-1];
+ pPdGainBoundaries[i] = AR5416_4K_EEP_PD_GAIN_BOUNDARY_DEFAULT;
i++;
}
OpenPOWER on IntegriCloud