Search Linux Wireless

[PATCH 7/9] ath9k_hw: process MCI interrupts only when btcoex is enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rajkumar Manoharan wrote:
> let us process MCI interrupts only when BTCOEX is enabled to avoid
> processing bogus interrupts.
> 
> Signed-off-by: Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxxxx>
> ---
>  drivers/net/wireless/ath/ath9k/ar9003_mac.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
> index d9e0824..1c0621d 100644
> --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
> +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
> @@ -302,7 +302,8 @@ static bool ar9003_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked)
>  			ar9003_hw_bb_watchdog_read(ah);
>  	}
>  
> -	if (async_cause & AR_INTR_ASYNC_MASK_MCI)
> +	if ((async_cause & AR_INTR_ASYNC_MASK_MCI) &&
> +	    ath9k_hw_mci_is_enabled(ah))
>  		ar9003_mci_get_isr(ah, masked);

I don't see how AR_INTR_ASYNC_MASK_MCI would be generated when
MCI is disabled ? So the check needs to be one level up.

Sujith
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux