wcn36xx: Specify ieee80211_rx_status.nss
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Sat, 29 Aug 2020 03:38:42 +0000 (04:38 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Sep 2020 08:48:26 +0000 (11:48 +0300)
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200829033846.2167619-7-bryan.odonoghue@linaro.org
drivers/net/wireless/ath/wcn36xx/txrx.c

index 19f5e306848b0f0b2f31f5c44cc9026c1abae247..1b831157ede17af62a45c066f6ef0ca5e531ddb8 100644 (file)
@@ -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 &&