ath9k: fix mci_is_enabled utility
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Mon, 18 Jun 2012 13:32:38 +0000 (19:02 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jun 2012 19:14:51 +0000 (15:14 -0400)
During driver stop, btcoex is disabled and also btcoex_hw.enabled
is set to false. Afterwards mci_is_enabled returns false so that
BT is not gaining SPDT control on WLAN sleep. Fix that.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.h

index b49e4b48f459382088303abf6986cd3a3bc54b1c..94096607cbdda9a8d8606f575a64a575ad94c3a1 100644 (file)
@@ -1030,7 +1030,8 @@ static inline bool ath9k_hw_btcoex_is_enabled(struct ath_hw *ah)
 }
 static inline bool ath9k_hw_mci_is_enabled(struct ath_hw *ah)
 {
-       return ah->btcoex_hw.enabled && (ah->caps.hw_caps & ATH9K_HW_CAP_MCI);
+       return ah->common.btcoex_enabled &&
+              (ah->caps.hw_caps & ATH9K_HW_CAP_MCI);
 
 }
 void ath9k_hw_btcoex_enable(struct ath_hw *ah);