]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath10k: correct the tlv len of ath10k_wmi_tlv_op_gen_config_pno_start
authorWen Gong <wgong@codeaurora.org>
Fri, 15 Nov 2019 07:21:32 +0000 (09:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:11 +0000 (08:38 +0100)
commit83f89f04b550d0f435899703fa7d2a959e75df89
treec65e42aa8fe2e7cb83d14304da37039ce6129ae9
parent7255b9422cc266c23df73b35c2d6e58b4d592fc5
ath10k: correct the tlv len of ath10k_wmi_tlv_op_gen_config_pno_start

[ Upstream commit e01cc82c4d1ec3bddcbb7cd991cf5dc0131ed9a1 ]

the tlv len is set to the total len of the wmi cmd, it will trigger
firmware crash, correct the tlv len.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00017-QCARMSWP-1 and QCA6174
PCIE with firmware WLAN.RM.4.4.1-00110-QCARMSWPZ-1.

Fixes: ce834e280f2f875 ("ath10k: support NET_DETECT WoWLAN feature")
Signed-off-by: Wen Gong <wgong@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