ath9k: Prepare MCI interface correctly
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 16 Feb 2015 05:19:59 +0000 (10:49 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Mar 2015 12:55:23 +0000 (14:55 +0200)
The LNA_TRANS message needs to be sent only for
chips which have shared PA/LNA.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/ar9003_mci.c

index de65ce190c6b72c3da959e545935f4bc9e0de0a2..505dfe357d1535e7011c8ebbe62396016c5b9333 100644 (file)
@@ -284,12 +284,12 @@ static void ar9003_mci_prep_interface(struct ath_hw *ah)
                  AR_MCI_INTERRUPT_RX_MSG_CONT_RST);
        REG_WRITE(ah, AR_MCI_INTERRUPT_RAW, AR_MCI_INTERRUPT_BT_PRI);
 
-       if (mci->is_2g) {
+       if (mci->is_2g && MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
                ar9003_mci_send_lna_transfer(ah, true);
                udelay(5);
        }
 
-       if ((mci->is_2g && !mci->update_2g5g)) {
+       if (mci->is_2g && !mci->update_2g5g && MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
                if (ar9003_mci_wait_for_interrupt(ah,
                                        AR_MCI_INTERRUPT_RX_MSG_RAW,
                                        AR_MCI_INTERRUPT_RX_MSG_LNA_INFO,