From: Sujith Manoharan Date: Wed, 7 Aug 2013 06:59:27 +0000 (+0530) Subject: ath9k: Fix BTCOEX usage for RX diversity X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d845871ffcafee22889c286ff3f1fb1f64be0c0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ath9k: Fix BTCOEX usage for RX diversity BTCOEX has to be *disabled* for WLAN RX diversity to work on combo cards. Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 4afe30e0bf49..3b56c2e7efe7 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -645,11 +645,11 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, /* * Enable WLAN/BT RX Antenna diversity only when: * - * - BTCOEX is enabled + * - BTCOEX is disabled. * - the user manually requests the feature. * - the HW cap is set using the platform data. */ - if (common->btcoex_enabled && ath9k_bt_ant_diversity && + if (!common->btcoex_enabled && ath9k_bt_ant_diversity && (pCap->hw_caps & ATH9K_HW_CAP_BT_ANT_DIV)) common->bt_ant_diversity = 1;