Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9c10469 authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by John W. Linville
Browse files

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: default avatarRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 491b209d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -652,9 +652,10 @@ 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;
	}
}

static void ar9003_hw_tx_iqcal_load_avg_2_passes(struct ath_hw *ah,
						 u8 num_chains,