ath10k: fix VHT NSS calculation when STBC is enabled
authorSathishkumar Muruganandam <murugana@codeaurora.org>
Fri, 14 Aug 2020 08:16:11 +0000 (13:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:06:54 +0000 (11:06 +0100)
commitc0beb6d0fef9bbdd22a63cff6e34dce0ebf78a3c
treeaa0ff27a4f0f7a15f88e772ca6613c9750736288
parentecb876acb8dee911334740907c9ef2642054ec7f
ath10k: fix VHT NSS calculation when STBC is enabled

[ Upstream commit 99f41b8e43b8b4b31262adb8ac3e69088fff1289 ]

When STBC is enabled, NSTS_SU value need to be accounted for VHT NSS
calculation for SU case.

Without this fix, 1SS + STBC enabled case was reported wrongly as 2SS
in radiotap header on monitor mode capture.

Tested-on: QCA9984 10.4-3.10-00047

Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1597392971-3897-1-git-send-email-murugana@codeaurora.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/htt_rx.c