Search Linux Wireless

[PATCH 1/2] ath9k: Set appropriate bit for AR9565 in btc control register

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

 



Signed-off-by: Bala Shanmugam <bkamatch@xxxxxxxxxxxxxxxx>
---
 drivers/net/wireless/ath/ath9k/ar9003_mci.c |   30 ++++++++++++++++++--------
 1 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
index 44c202c..841f2b9 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
@@ -843,15 +843,27 @@ int ar9003_mci_reset(struct ath_hw *ah, bool en_int, bool is_2g,
 	* MCI mode will be enabled later, right before reset the MCI TX and RX.
 	*/
 
-	regval = SM(1, AR_BTCOEX_CTRL_AR9462_MODE) |
-		 SM(1, AR_BTCOEX_CTRL_WBTIMER_EN) |
-		 SM(1, AR_BTCOEX_CTRL_PA_SHARED) |
-		 SM(1, AR_BTCOEX_CTRL_LNA_SHARED) |
-		 SM(2, AR_BTCOEX_CTRL_NUM_ANTENNAS) |
-		 SM(3, AR_BTCOEX_CTRL_RX_CHAIN_MASK) |
-		 SM(0, AR_BTCOEX_CTRL_1_CHAIN_ACK) |
-		 SM(0, AR_BTCOEX_CTRL_1_CHAIN_BCN) |
-		 SM(0, AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN);
+	if (AR_SREV_9565(ah)) {
+		regval = SM(1, AR_BTCOEX_CTRL_AR9462_MODE) |
+			 SM(1, AR_BTCOEX_CTRL_WBTIMER_EN) |
+			 SM(0, AR_BTCOEX_CTRL_PA_SHARED) |
+			 SM(0, AR_BTCOEX_CTRL_LNA_SHARED) |
+			 SM(2, AR_BTCOEX_CTRL_NUM_ANTENNAS) |
+			 SM(1, AR_BTCOEX_CTRL_RX_CHAIN_MASK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_ACK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_BCN) |
+			 SM(0, AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN);
+	} else {
+		regval = SM(1, AR_BTCOEX_CTRL_AR9462_MODE) |
+			 SM(1, AR_BTCOEX_CTRL_WBTIMER_EN) |
+			 SM(1, AR_BTCOEX_CTRL_PA_SHARED) |
+			 SM(1, AR_BTCOEX_CTRL_LNA_SHARED) |
+			 SM(2, AR_BTCOEX_CTRL_NUM_ANTENNAS) |
+			 SM(3, AR_BTCOEX_CTRL_RX_CHAIN_MASK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_ACK) |
+			 SM(0, AR_BTCOEX_CTRL_1_CHAIN_BCN) |
+			 SM(0, AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN);
+	}
 
 	REG_WRITE(ah, AR_BTCOEX_CTRL, regval);
 
-- 
1.7.4.1

--
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