OSDN Git Service

ath10k: Fix length of wmi tlv command for protected mgmt frames
authorSurabhi Vishnoi <svishnoi@codeaurora.org>
Fri, 15 Feb 2019 15:19:37 +0000 (20:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:28 +0000 (14:50 +0100)
commitb8efa9fd9e251c1f3ac65154e5a1ae70073f16e5
tree4aee96abcdfbc7673781817956e73deb2acb8bde
parent31c98a2efa5b51f117a725a3977826443bc3b1e1
ath10k: Fix length of wmi tlv command for protected mgmt frames

[ Upstream commit 761156ff573d1002983416e4fd1fe8d3489c4bd8 ]

The length of wmi tlv command for management tx send is calculated
incorrectly in case of protected management frames as there is addition
of IEEE80211_CCMP_MIC_LEN twice. This leads to improper behaviour of
firmware as the wmi tlv mgmt tx send command for protected mgmt frames
is formed wrongly.

Fix the length calculation of wmi tlv command for mgmt tx send in case
of protected management frames by adding the IEEE80211_CCMP_MIC_LEN only
once.

Tested HW: WCN3990
Tested FW: WLAN.HL.3.1-00784-QCAHLSWMTPLZ-1

Fixes: 1807da49733e "ath10k: wmi: add management tx by reference support over wmi"
Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/wmi-tlv.c