aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2012-07-01 10:23:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-09 16:36:18 -0400
commit1fe860edb0787fa2df6d043e34a55dc739e235f0 (patch)
treecf2d65fa6ffcd808f5afc129960f1beb2afeb1cc /drivers/net/wireless/ath/ath9k/hw.c
parent4795f0960937f58a553ac405bb1cf18ecb8972ba (diff)
ath9k_hw: start noisefloor calibration after MCI reset
noisefloor calibration has to be loaded and started after chip reset completion and restoring chainmask. Right now it is being started before MCI reset completion on full reset. Fix that. Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index ebfb2a3c645c..10a55bcda1b8 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1949,9 +1949,6 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
1949 if (!ath9k_hw_init_cal(ah, chan)) 1949 if (!ath9k_hw_init_cal(ah, chan))
1950 return -EIO; 1950 return -EIO;
1951 1951
1952 ath9k_hw_loadnf(ah, chan);
1953 ath9k_hw_start_nfcal(ah, true);
1954
1955 if (ath9k_hw_mci_is_enabled(ah) && ar9003_mci_end_reset(ah, chan, caldata)) 1952 if (ath9k_hw_mci_is_enabled(ah) && ar9003_mci_end_reset(ah, chan, caldata))
1956 return -EIO; 1953 return -EIO;
1957 1954
@@ -2000,6 +1997,9 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
2000 if (ath9k_hw_mci_is_enabled(ah)) 1997 if (ath9k_hw_mci_is_enabled(ah))
2001 ar9003_mci_check_bt(ah); 1998 ar9003_mci_check_bt(ah);
2002 1999
2000 ath9k_hw_loadnf(ah, chan);
2001 ath9k_hw_start_nfcal(ah, true);
2002
2003 if (AR_SREV_9300_20_OR_LATER(ah)) { 2003 if (AR_SREV_9300_20_OR_LATER(ah)) {
2004 ar9003_hw_bb_watchdog_config(ah); 2004 ar9003_hw_bb_watchdog_config(ah);
2005 2005