linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sujith Manoharan <sujith@msujith.org>
To: linux-wireless@vger.kernel.org
Subject: [PATCH 7/9] ath9k: Prepare MCI interface correctly
Date: Mon, 16 Feb 2015 10:49:59 +0530	[thread overview]
Message-ID: <1424064001-7009-8-git-send-email-sujith@msujith.org> (raw)
In-Reply-To: <1424064001-7009-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

The LNA_TRANS message needs to be sent only for
chips which have shared PA/LNA.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/ar9003_mci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mci.c b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
index de65ce1..505dfe3 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mci.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mci.c
@@ -284,12 +284,12 @@ static void ar9003_mci_prep_interface(struct ath_hw *ah)
 		  AR_MCI_INTERRUPT_RX_MSG_CONT_RST);
 	REG_WRITE(ah, AR_MCI_INTERRUPT_RAW, AR_MCI_INTERRUPT_BT_PRI);
 
-	if (mci->is_2g) {
+	if (mci->is_2g && MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
 		ar9003_mci_send_lna_transfer(ah, true);
 		udelay(5);
 	}
 
-	if ((mci->is_2g && !mci->update_2g5g)) {
+	if (mci->is_2g && !mci->update_2g5g && MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
 		if (ar9003_mci_wait_for_interrupt(ah,
 					AR_MCI_INTERRUPT_RX_MSG_RAW,
 					AR_MCI_INTERRUPT_RX_MSG_LNA_INFO,
-- 
2.3.0


  parent reply	other threads:[~2015-02-16  5:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16  5:19 [PATCH 0/9] ath9k patches Sujith Manoharan
2015-02-16  5:19 ` [PATCH 1/9] ath9k: Move MCI registers to reg_mci.h Sujith Manoharan
2015-03-03 12:57   ` [1/9] " Kalle Valo
2015-02-16  5:19 ` [PATCH 2/9] ath9k: Remove useless check in MCI reset Sujith Manoharan
2015-02-16  5:19 ` [PATCH 3/9] ath9k: Add new MCI configuration parameters Sujith Manoharan
2015-02-16  5:19 ` [PATCH 4/9] ath9k: Handle 2-ANT AR9565 in MCI reset Sujith Manoharan
2015-02-16  5:19 ` [PATCH 5/9] ath9k: Fix MCI TX control Sujith Manoharan
2015-02-16  5:19 ` [PATCH 6/9] ath9k: Setup MCI statistics properly Sujith Manoharan
2015-02-16  5:19 ` Sujith Manoharan [this message]
2015-02-16  5:20 ` [PATCH 8/9] ath9k: Fix GPM initialization Sujith Manoharan
2015-02-16  5:20 ` [PATCH 9/9] ath9k: Mute BT properly Sujith Manoharan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424064001-7009-8-git-send-email-sujith@msujith.org \
    --to=sujith@msujith.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).