summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-01-17 17:31:47 +0000
committeradrian <adrian@FreeBSD.org>2015-01-17 17:31:47 +0000
commitf4b991f7e23d06e2abe21155158cf8ff025e4667 (patch)
tree95bda69c92565ea9d91f9e43bc3622867e5e7548
parentb7da41a302a93349ae03134c010594d8587438fe (diff)
downloadFreeBSD-src-f4b991f7e23d06e2abe21155158cf8ff025e4667.zip
FreeBSD-src-f4b991f7e23d06e2abe21155158cf8ff025e4667.tar.gz
Skip the OFDM weak signal threshold detection programming for
AR9462/AR9565. This and some upcoming changes to the HAL for these chips should address some of the signal sensitivity reported by users. Tested: * AR9462 (WB222), STA mode Obtained from: Linux ath9k
-rw-r--r--sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c
index b07ca71..75746fc 100644
--- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c
+++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c
@@ -484,6 +484,9 @@ ar9300_ani_control(struct ath_hal *ah, HAL_ANI_CMD cmd, int param)
*/
is_on = param ? 1 : 0;
+ if (AR_SREV_JUPITER(ah) || AR_SREV_APHRODITE(ah))
+ goto skip_ws_det;
+
/*
* make register setting for default (weak sig detect ON)
* come from INI file
@@ -528,6 +531,7 @@ ar9300_ani_control(struct ath_hal *ah, HAL_ANI_CMD cmd, int param)
m1_thresh_ext);
OS_REG_RMW_FIELD(ah, AR_PHY_SFCORR_EXT, AR_PHY_SFCORR_EXT_M2_THRESH,
m2_thresh_ext);
+skip_ws_det:
if (is_on) {
OS_REG_SET_BIT(ah, AR_PHY_SFCORR_LOW,
AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
OpenPOWER on IntegriCloud