]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: Fix wlan-active gpio for the AR9003 family
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sun, 1 Mar 2015 06:23:47 +0000 (11:53 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Mar 2015 13:46:56 +0000 (15:46 +0200)
When disabling BTCOEX, clearing the wlanactive gpio line
is required only for pre-AR9003 cards.

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

index 78e892e5b66c55541957e4cc5ee2278a4578648b..5a084d94ed90793f22d5964bee6114a63a26f605 100644 (file)
@@ -361,7 +361,8 @@ void ath9k_hw_btcoex_disable(struct ath_hw *ah)
                return;
        }
 
-       ath9k_hw_set_gpio(ah, btcoex_hw->wlanactive_gpio, 0);
+       if (!AR_SREV_9300_20_OR_LATER(ah))
+               ath9k_hw_set_gpio(ah, btcoex_hw->wlanactive_gpio, 0);
 
        ath9k_hw_cfg_output(ah, btcoex_hw->wlanactive_gpio,
                        AR_GPIO_OUTPUT_MUX_AS_OUTPUT);