ath9k: Setup MCI interrupts properly
MCI interrupts have to be enabled only when BTCOEX is actually in use. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
d09f5f4cfb
commit
e270e776a0
@@ -538,3 +538,14 @@ void ath_mci_intr(struct ath_softc *sc)
|
||||
mci_int &= ~(AR_MCI_INTERRUPT_RX_INVALID_HDR |
|
||||
AR_MCI_INTERRUPT_CONT_INFO_TIMEOUT);
|
||||
}
|
||||
|
||||
void ath_mci_enable(struct ath_softc *sc)
|
||||
{
|
||||
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
|
||||
|
||||
if (!common->btcoex_enabled)
|
||||
return;
|
||||
|
||||
if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_MCI)
|
||||
sc->sc_ah->imask |= ATH9K_INT_MCI;
|
||||
}
|
||||
|
Reference in New Issue
Block a user