ath11k: fix vht guard interval mapping
authorManikanta Pubbisetty <mpubbise@codeaurora.org>
Thu, 28 Nov 2019 08:21:50 +0000 (08:21 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:50:06 +0000 (09:50 +0200)
commit28dee8ef7645cdc3e19814ac909c7eff781b66a5
treeb31e11e4928401270e6aa2f44cb098b4a46c17d4
parent5e02bc7354e1339ad801c7a2e31eb7f7bbeb7b22
ath11k: fix vht guard interval mapping

Guard interval value which comes from VHT_SIG_A TLV has a mapping
where value 0 corresponds to LGI, 1 and 3 corresponds to SGI.

Value 3 which is SGI(0.4us) in VHT was incorrectly mapped to a GI
of 3.2us(only applicable in HE) resulting in incorrect rx GI stats.
Fixing the mapping.

Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/hal_rx.c
drivers/net/wireless/ath/ath11k/hal_rx.h