ath9k: Disable AIC by default
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sat, 14 Mar 2015 05:57:53 +0000 (11:27 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 20 Mar 2015 06:27:25 +0000 (08:27 +0200)
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>
drivers/net/wireless/ath/ath9k/ar9003_aic.c
drivers/net/wireless/ath/ath9k/ar9003_mci.c

index 51ecc9b2df8cbda9c0819f9a8fe2bfdf154f0f07..7bdbc7a7d7ad5eeef93562d5e85cc5f464ce9f32 100644 (file)
@@ -40,6 +40,12 @@ static bool ar9003_hw_is_aic_enabled(struct ath_hw *ah)
 {
        struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
 
+       /*
+        * Disable AIC for now, until we have all the
+        * HW code and the driver-layer support ready.
+        */
+       return false;
+
        if (mci_hw->config & ATH_MCI_CONFIG_DISABLE_AIC)
                return false;
 
index 20bb5b990127da76ef84bc564bd2cd5416073d24..6fa98e51fdfca2abe23bc0fc135e9567be66c0b5 100644 (file)
@@ -1364,7 +1364,8 @@ u32 ar9003_mci_state(struct ath_hw *ah, u32 state_type)
                mci->need_flush_btinfo = false;
                break;
        case MCI_STATE_AIC_CAL_SINGLE:
-               value = ar9003_aic_calibration_single(ah);
+               if (ath9k_hw_is_aic_enabled(ah))
+                       value = ar9003_aic_calibration_single(ah);
                break;
        default:
                break;