aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2015-03-14 01:57:53 -0400
committerKalle Valo <kvalo@codeaurora.org>2015-03-20 02:27:25 -0400
commit208837eeb925e5fddc514e4f93a69b1639fa15ba (patch)
tree75315f8c114804eb56044263a6296d5fad738b08 /drivers/net/wireless/ath
parent188f1a1288d59ed9ae895bdbf22d46017a8a69b8 (diff)
ath9k: Disable AIC by default
Since various MCI messages need to be handled, along with driver-level support in upper layers, disable AIC for now. 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')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_aic.c6
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mci.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_aic.c b/drivers/net/wireless/ath/ath9k/ar9003_aic.c
index 51ecc9b2df8c..7bdbc7a7d7ad 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_aic.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_aic.c
@@ -40,6 +40,12 @@ static bool ar9003_hw_is_aic_enabled(struct ath_hw *ah)
40{ 40{
41 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; 41 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
42 42
43 /*
44 * Disable AIC for now, until we have all the
45 * HW code and the driver-layer support ready.
46 */
47 return false;
48
43 if (mci_hw->config & ATH_MCI_CONFIG_DISABLE_AIC) 49 if (mci_hw->config & ATH_MCI_CONFIG_DISABLE_AIC)
44 return false; 50 return false;
45 51
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
index 20bb5b990127..6fa98e51fdfc 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
@@ -1364,7 +1364,8 @@ u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type)
1364 mci->need_flush_btinfo = false; 1364 mci->need_flush_btinfo = false;
1365 break; 1365 break;
1366 case MCI_STATE_AIC_CAL_SINGLE: 1366 case MCI_STATE_AIC_CAL_SINGLE:
1367 value = ar9003_aic_calibration_single(ah); 1367 if (ath9k_hw_is_aic_enabled(ah))
1368 value = ar9003_aic_calibration_single(ah);
1368 break; 1369 break;
1369 default: 1370 default:
1370 break; 1371 break;