summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_mci.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2015-03-14 11:27:56 +0530
committerKalle Valo <kvalo@codeaurora.org>2015-03-20 08:28:11 +0200
commit60544603b669a25adb90bd6e2ea6fa625e380322 (patch)
tree922c9b69837cec29ae1d85625162c1a02ae9ee27 /drivers/net/wireless/ath/ath9k/ar9003_mci.c
parentf2ef792a80859ecdabeaf5bf960ad97a9dd81fc6 (diff)
downloadlinux-60544603b669a25adb90bd6e2ea6fa625e380322.tar.gz
linux-60544603b669a25adb90bd6e2ea6fa625e380322.tar.bz2
linux-60544603b669a25adb90bd6e2ea6fa625e380322.zip
ath9k: Handle MCI_STATE_AIC_CAL
Add the main AIC calibration function to handle MCI_STATE_AIC_CAL. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_mci.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
index b559d75b748b..cdd83d4038a3 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
@@ -1363,6 +1363,10 @@ u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type)
value = (!mci->unhalt_bt_gpm && mci->need_flush_btinfo) ? 1 : 0;
mci->need_flush_btinfo = false;
break;
+ case MCI_STATE_AIC_CAL:
+ if (ath9k_hw_is_aic_enabled(ah))
+ value = ar9003_aic_calibration(ah);
+ break;
case MCI_STATE_AIC_START:
if (ath9k_hw_is_aic_enabled(ah))
ar9003_aic_start_normal(ah);