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)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Nov 2019 11:52:22 +0000 (13:52 +0200)
commite01cc82c4d1ec3bddcbb7cd991cf5dc0131ed9a1
treebf98e8a1ad896175ed164b3c4fc0767c8628eaa5
parent2246c215659060b214c9cc7fcd4abec95874ae5a
ath10k: correct the tlv len of ath10k_wmi_tlv_op_gen_config_pno_start

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>
drivers/net/wireless/ath/ath10k/wmi-tlv.c