linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org,
	linux-wireless@vger.kernel.org
Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org,
	loic.poulain@linaro.org
Subject: [PATCH v2 06/10] wcn36xx: Specify ieee80211_rx_status.nss
Date: Sat, 29 Aug 2020 04:38:42 +0100	[thread overview]
Message-ID: <20200829033846.2167619-7-bryan.odonoghue@linaro.org> (raw)
In-Reply-To: <20200829033846.2167619-1-bryan.odonoghue@linaro.org>

Specify the number of spatial streams in ieee80211_rx_status. For non VHT
data-rates the wireless core doesn't care about this field, however for VHT
data-rates it does.

Every version of wcn36xx has one spatial stream, so specify nss for
wcn3620, wcn3660 and wcn3680 now.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/net/wireless/ath/wcn36xx/txrx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/ath/wcn36xx/txrx.c b/drivers/net/wireless/ath/wcn36xx/txrx.c
index 05a84f82584c..903b47b55728 100644
--- a/drivers/net/wireless/ath/wcn36xx/txrx.c
+++ b/drivers/net/wireless/ath/wcn36xx/txrx.c
@@ -272,6 +272,7 @@ int wcn36xx_rx_skb(struct wcn36xx *wcn, struct sk_buff *skb)
 		status.bw = rate->bw;
 		status.rate_idx = rate->mcs_or_legacy_index;
 		sband = wcn->hw->wiphy->bands[status.band];
+		status.nss = 1;
 
 		if (status.band == NL80211_BAND_5GHZ &&
 		    status.encoding == RX_ENC_LEGACY &&
-- 
2.27.0


  parent reply	other threads:[~2020-08-29  3:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-29  3:38 [PATCH v2 00/10] wcn36xx: Add basic support for wcn3680 up to MCS7/40MHz Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 01/10] wcn36xx: Add a chip identifier for WCN3680 Bryan O'Donoghue
2020-09-02  8:49   ` Kalle Valo
2020-08-29  3:38 ` [PATCH v2 02/10] wcn36xx: Hook and identify RF_IRIS_WCN3680 Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 03/10] wcn36xx: Add ieee802.11 VHT flags Bryan O'Donoghue
2020-09-02  8:55   ` Kalle Valo
     [not found]   ` <20200902085545.5CC7EC433CA@smtp.codeaurora.org>
2020-09-02  9:46     ` Bryan O'Donoghue
2020-09-02 12:22       ` Kalle Valo
2020-08-29  3:38 ` [PATCH v2 04/10] wcn36xx: Add 802.11ac MCS rates Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 05/10] wcn36xx: Fix warning due to bad rate_idx Bryan O'Donoghue
2020-08-29  3:38 ` Bryan O'Donoghue [this message]
2020-08-29  3:38 ` [PATCH v2 07/10] wcn36xx: Add 802.11ac HAL param bitfields Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 08/10] wcn36xx: Add Supported rates V1 structure Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 09/10] wcn36xx: Use existing pointers in wcn36xx_smd_config_bss_v1 Bryan O'Donoghue
2020-08-29  3:38 ` [PATCH v2 10/10] wcn36xx: Set feature DOT11AC for wcn3680 Bryan O'Donoghue

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=20200829033846.2167619-7-bryan.odonoghue@linaro.org \
    --to=bryan.odonoghue@linaro.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=loic.poulain@linaro.org \
    --cc=shawn.guo@linaro.org \
    --cc=wcn36xx@lists.infradead.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).