ath10k: correct the format of host memory chunks in wmi init command
authorYu Wang <yyuwang@codeaurora.org>
Mon, 25 Feb 2019 09:45:52 +0000 (11:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Feb 2019 13:00:08 +0000 (15:00 +0200)
commitd961284df24b8566b473d3828fe299677e155ae6
treedb20531cd232d633b70a0e8008cc97404bdbe022
parent1c136e41fb779b6c8127eec19b2a0669a4a7c9a7
ath10k: correct the format of host memory chunks in wmi init command

This is a theoretical fix, the issue is found in code review.
When adding the host memory chunks into wmi-tlv init command,
there is no separate tlv header for each host memory chunk
in the struct array, which breaches the convention between
host and firmware, will result in mismatch between the two.

To fix this issue, add separate tlv headers for the host
memory chunks in wmi-tlv init command.

Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/wmi-tlv.c