linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@codeaurora.org>
To: linux-wireless@vger.kernel.org
Cc: ath11k@lists.infradead.org
Subject: [PATCH 1/9] ath11k: Update tx and rx chain count properly on drv_set_antenna
Date: Thu, 28 Nov 2019 08:21:45 +0000	[thread overview]
Message-ID: <0101016eb11a10c9-dd904af5-539a-4c05-9ffc-3a1cc33b99f5-000000@us-west-2.amazonses.com> (raw)
In-Reply-To: <1574929300-31782-1-git-send-email-kvalo@codeaurora.org>

From: Sriram R <srirrama@codeaurora.org>

Set the number of tx and rx chains properly on drv_set_antenna().
This will ensure the related ht/vht/he caps are properly recalculated
based on the tx/rx chains set.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/mac.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 5231c4fa0e38..5ee7c2a1c611 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -3480,6 +3480,8 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)
 		return ret;
 	}
 
+	ar->num_tx_chains = get_num_chains(tx_ant);
+
 	ret = ath11k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_RX_CHAIN_MASK,
 					rx_ant, ar->pdev->pdev_id);
 	if (ret) {
@@ -3488,6 +3490,8 @@ static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant)
 		return ret;
 	}
 
+	ar->num_rx_chains = get_num_chains(rx_ant);
+
 	/* Reload HT/VHT/HE capability */
 	ath11k_mac_setup_ht_vht_cap(ar, &ar->pdev->cap, NULL);
 	ath11k_mac_setup_he_cap(ar, &ar->pdev->cap);
-- 
2.7.4


       reply	other threads:[~2019-11-28  8:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1574929300-31782-1-git-send-email-kvalo@codeaurora.org>
2019-11-28  8:21 ` Kalle Valo [this message]
2019-11-29  7:51   ` [PATCH 1/9] ath11k: Update tx and rx chain count properly on drv_set_antenna Kalle Valo
2019-11-28  8:21 ` [PATCH 2/9] ath11k: Advertise MPDU start spacing as no restriction Kalle Valo
2019-11-28  8:21 ` [PATCH 3/9] ath11k: fix memory leak in monitor mode Kalle Valo
2019-11-28  8:21 ` [PATCH 4/9] ath11k: fix vht guard interval mapping Kalle Valo
2019-11-28  8:21 ` [PATCH 5/9] ath11k: update tx duration in station info Kalle Valo
2019-11-28  8:21 ` [PATCH 6/9] ath11k: Skip update peer stats for management packets Kalle Valo
2019-11-28  8:21 ` [PATCH 7/9] ath11k: Move mac80211 hw allocation before wmi_init command Kalle Valo
2019-11-28  8:21 ` [PATCH 8/9] ath11k: Setup REO destination ring before sending " Kalle Valo
2019-11-28  8:22 ` [PATCH 9/9] ath11k: fix indentation in ath11k_mac_prepare_he_mode() Kalle Valo

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=0101016eb11a10c9-dd904af5-539a-4c05-9ffc-3a1cc33b99f5-000000@us-west-2.amazonses.com \
    --to=kvalo@codeaurora.org \
    --cc=ath11k@lists.infradead.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).