qcacmn: Add support for checksum from FW for pktlog

If the FW sends a pktlog checksum in the FW ready event, store that in
pl_dev and use it as buf_hdr.version in the pktlog buffer header.

Also, use a new magic value to identify the checksum in the
buf_hdr.version field.

If the FW does not send the checksum, then the existing magic number
and standard version number would be maintained.

Change-Id: Ib08c093a9b54495a2c5b7e0e163207f2b1eb4ce2
CRs-Fixed: 2508828
This commit is contained in:
Vignesh Viswanathan
2019-08-13 19:00:08 +05:30
committed by nshrivas
parent a33e6a8ea7
commit 3e31e2babd
4 changed files with 43 additions and 0 deletions

View File

@@ -7108,6 +7108,10 @@ struct coex_config_params {
* radar detection, concurrently with using another radio
* chain for non-160 MHz regular operation.
* @max_ast_index: Max number of AST entries that FW could allocate.
* @pktlog_defs_checksum: checksum computed from the definitions of the enums
* and structs used within pktlog traces. This is sent
* from the FW as part of FW ready event and needs
* to be embedded in the pktlog buffer header as version.
*/
struct wmi_host_ready_ev_param {
uint32_t status;
@@ -7117,6 +7121,7 @@ struct wmi_host_ready_ev_param {
uint32_t num_extra_peer;
bool agile_capability;
uint32_t max_ast_index;
uint32_t pktlog_defs_checksum;
};
enum bcn_offload_control_param {