mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 08:46:36 +09:00
ath9k_hw: Fix magnitude/phase coeff correction
commit e9c10469cf upstream.
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.
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9b463e944a
commit
41a5bf6108
@@ -643,8 +643,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,
|
||||
|
||||
Reference in New Issue
Block a user