aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2011-10-13 01:30:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-10-14 14:48:22 -0400
commit324c74ad64c7528a9cf243455723d5ed57238e15 (patch)
tree1efd8d607d7908cf697f8e1fbe46d3b9921a466f /drivers/net/wireless/ath/ath9k/hw.c
parent1aef40b82c48d028d92e811c7f7dc5a0dbf9fa9a (diff)
ath9k_hw: Add radio retention support for AR9480
Supported calibrations of radio retention table (RTT) are - DC offset - Filter - Peak detect 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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index e6b0d6883ac5..0eb0b3bcb74e 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1709,6 +1709,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
1709 if (caldata) { 1709 if (caldata) {
1710 caldata->done_txiqcal_once = false; 1710 caldata->done_txiqcal_once = false;
1711 caldata->done_txclcal_once = false; 1711 caldata->done_txclcal_once = false;
1712 caldata->rtt_hist.num_readings = 0;
1712 } 1713 }
1713 if (!ath9k_hw_init_cal(ah, chan)) 1714 if (!ath9k_hw_init_cal(ah, chan))
1714 return -EIO; 1715 return -EIO;
@@ -2319,6 +2320,9 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
2319 if (!AR_SREV_9330(ah)) 2320 if (!AR_SREV_9330(ah))
2320 ah->enabled_cals |= TX_IQ_ON_AGC_CAL; 2321 ah->enabled_cals |= TX_IQ_ON_AGC_CAL;
2321 } 2322 }
2323 if (AR_SREV_9480(ah))
2324 pCap->hw_caps |= ATH9K_HW_CAP_RTT;
2325
2322 return 0; 2326 return 0;
2323} 2327}
2324 2328