]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ath9k: load noise floor from history after the full chip reset
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Thu, 15 Sep 2011 13:32:53 +0000 (19:02 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Sep 2011 19:58:25 +0000 (15:58 -0400)
Currently during the full reset, the nf calibration is always
restarted from the defaults. The noise floor history buffers are
never be used again after the scan and ath reset. This patch
ensures that nf histories are always be used that helps to
improve the signal quality on congested environment

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_calib.c
drivers/net/wireless/ath/ath9k/ar9003_calib.c

index 2d4c0910295bd39b08cb4abdc845c140d6bc22de..c527af84b3713f6128c11db00d70c6d63ad5f63d 100644 (file)
@@ -868,6 +868,7 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan)
        ar9002_hw_pa_cal(ah, true);
 
        /* Do NF Calibration after DC offset and other calibrations */
+       ath9k_hw_loadnf(ah, chan);
        ath9k_hw_start_nfcal(ah, true);
 
        if (ah->caldata)
index 695d9d38d4823d6ad3b84d3f82b54ab2401cb169..e4b1a83008547cbe053b18af6f2119bd95486e58 100644 (file)
@@ -885,6 +885,7 @@ static bool ar9003_hw_init_cal(struct ath_hw *ah,
        if (txiqcal_done)
                ar9003_hw_tx_iq_cal_post_proc(ah);
 
+       ath9k_hw_loadnf(ah, chan);
        ath9k_hw_start_nfcal(ah, true);
 
        /* Initialize list pointers */