ath9k_hw: Fix magnitude/phase average in TxIQ Calibration
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Tue, 6 Sep 2011 16:29:51 +0000 (21:59 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Sep 2011 17:56:33 +0000 (13:56 -0400)
commite948b99d6f38b726ad1c8f99a2672b792756b549
tree6e818f5abca0f8a1724fe0adc61fcb0366bc3177
parent6bc05a9555543d0f8cc56bf2647819aebe39e938
ath9k_hw: Fix magnitude/phase average in TxIQ Calibration

The commit "ath9k_hw: Fix Tx IQ Calibration hang issue in
AR9003 chips" did not consider more than one potential sample
while calculating magnitude/phase average if more than one
sample has the same value which could affect post-processing
of outlier detection that causes an undesirable Tx IQ
correction value will be assigned to tx gain settings where
outlier happens.

Cc: Kai Shi <kaishi@qca.qualcomm.com>
Reported-by: Paul Stewart <pstew@google.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: Paul Stewart <pstew@google.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_calib.c