* [PATCH] ath11k: mask out vht beamforming if a fixed rate is set
@ 2019-12-17 17:18 John Crispin
2020-01-15 9:25 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: John Crispin @ 2019-12-17 17:18 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, ath11k, Ritesh Singh, John Crispin
From: Ritesh Singh <ritesi@codeaurora.org>
After setting a fixed vht-rate we see a FW assert if a STA tries to
(re)assoc with the mu_bfee cap set. This patch masks out the capability
bits if a fixed rate is set.
Reviewed-by: John Crispin <john@phrozen.org>
Signed-off-by: Ritesh Singh <ritesi@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/mac.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index b8be78dc295d..7f17d0e4cb96 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -1126,6 +1126,9 @@ static void ath11k_peer_assoc_h_vht(struct ath11k *ar,
arg->tx_mcs_set &= ~IEEE80211_VHT_MCS_SUPPORT_0_11_MASK;
arg->tx_mcs_set |= IEEE80211_DISABLE_VHT_MCS_SUPPORT_0_11;
+ if ((arg->tx_mcs_set & 0x3) == 0x3)
+ arg->peer_vht_caps &= ~IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE;
+
/* TODO: Check */
arg->tx_max_mcs_nss = 0xFF;
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath11k: mask out vht beamforming if a fixed rate is set
2019-12-17 17:18 [PATCH] ath11k: mask out vht beamforming if a fixed rate is set John Crispin
@ 2020-01-15 9:25 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-01-15 9:25 UTC (permalink / raw)
To: John Crispin; +Cc: linux-wireless, ath11k, Ritesh Singh, John Crispin
John Crispin <john@phrozen.org> wrote:
> From: Ritesh Singh <ritesi@codeaurora.org>
>
> After setting a fixed vht-rate we see a FW assert if a STA tries to
> (re)assoc with the mu_bfee cap set. This patch masks out the capability
> bits if a fixed rate is set.
>
> Reviewed-by: John Crispin <john@phrozen.org>
> Signed-off-by: Ritesh Singh <ritesi@codeaurora.org>
John's s-o-b missing. Also no magic numbers, please. Isn't there a proper
define for 0x3?
--
https://patchwork.kernel.org/patch/11298287/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-15 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-17 17:18 [PATCH] ath11k: mask out vht beamforming if a fixed rate is set John Crispin
2020-01-15 9:25 ` Kalle Valo
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).