diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2011-09-15 17:32:25 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 23:58:25 +0400 |
commit | e9c10469cf3c71bc1c6b0f01319161e277d6ac9b (patch) | |
tree | 1ce8688210d2bc7c6e62b17e0ac40fc9c8066e91 /drivers | |
parent | 491b209d06192a8b93d226b4e5d7399747bf01ef (diff) | |
download | linux-e9c10469cf3c71bc1c6b0f01319161e277d6ac9b.tar.xz |
ath9k_hw: Fix magnitude/phase coeff correction
Do the magnitude/phase coeff correction only if the outlier
is detected. Updating wrong magnitude/phase coeff factor
impacts not only tx gain setting but also leads to poor
performance in congested networks. In the clear environment
the impact is very minimal because the outlier happens
very rarely according to the past experiment. It occured
less than once every 1000 calibrations.
Cc: stable@kernel.org
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_calib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_calib.c b/drivers/net/wireless/ath/ath9k/ar9003_calib.c index 3319a676c0fb..695d9d38d482 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c @@ -652,8 +652,9 @@ static void ar9003_hw_detect_outlier(int *mp_coeff, int nmeasurement, outlier_idx = max_idx; else outlier_idx = min_idx; + + mp_coeff[outlier_idx] = mp_avg; } - mp_coeff[outlier_idx] = mp_avg; } static void ar9003_hw_tx_iqcal_load_avg_2_passes(struct ath_hw *ah, |