ath11k: calculate the correct NSS of peer for HE capabilities
authorWen Gong <quic_wgong@quicinc.com>
Mon, 22 Nov 2021 11:13:57 +0000 (13:13 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 22 Nov 2021 14:33:10 +0000 (16:33 +0200)
commit3db26ecf7114370e451e296e33a0af3303d32819
tree8d56a5326d53a938cae72a7f487027fb1067f499
parentf8108250e331b8f0273c53afb9e2db5068e59b2e
ath11k: calculate the correct NSS of peer for HE capabilities

When connected to 6G mode AP, it does not have VHT/HT capabilities,
so the NSS is not set, then it is 1 by default.

This patch is to calculate the NSS with supported HE-MCS and NSS set
of HE capabilities.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01280-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211118095453.8030-1-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c