ath11k: Fix fw assert by setting proper vht cap
authorRitesh Singh <ritesi@codeaurora.org>
Fri, 10 Apr 2020 17:06:44 +0000 (22:36 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Apr 2020 07:59:32 +0000 (10:59 +0300)
commit40c766d4a49cdfe30e0fb40825321b4d4de651aa
tree63d1837ea2aea4ab1e80555630aa906e5713e49c
parent6fc3b94ef5964736408cd4f8e85a816dcf1dd510
ath11k: Fix fw assert by setting proper vht cap

After setting fixed vht-rate if new station is trying to
assoc with mu_bfee cap, or if a sta is already connected
with mu_bfee cap then set the fixed vht-rate and
reconnecting the sta, FW assert is happening.

So to avoid this, reset the MU_BEAMFORMEE bit in vht->caps,
if mcs_index is invalid for nss 1.

Signed-off-by: Ritesh Singh <ritesi@codeaurora.org>
Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1586538405-16226-2-git-send-email-mkenna@codeaurora.org
drivers/net/wireless/ath/ath11k/mac.c