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
Este commit está contenido en:

cometido por
nshrivas

padre
a33e6a8ea7
commit
3e31e2babd
@@ -215,6 +215,7 @@ struct tgt_info {
|
||||
* @sw_version_check: Checks the SW version
|
||||
* @smart_log_enable: Enable Smart Logs feature
|
||||
* @cfr_support_enable: CFR support enable
|
||||
* @set_pktlog_checksum: Set the pktlog checksum from FW ready event to pl_dev
|
||||
*/
|
||||
struct target_ops {
|
||||
QDF_STATUS (*ext_resource_config_enable)
|
||||
@@ -275,6 +276,8 @@ struct target_ops {
|
||||
void (*cfr_support_enable)
|
||||
(struct wlan_objmgr_psoc *psoc,
|
||||
struct target_psoc_info *tgt_info, uint8_t *event);
|
||||
void (*set_pktlog_checksum)
|
||||
(struct wlan_objmgr_pdev *pdev, uint32_t checksum);
|
||||
};
|
||||
|
||||
|
||||
@@ -1770,6 +1773,24 @@ static inline void target_if_cfr_support_enable(struct wlan_objmgr_psoc *psoc,
|
||||
tgt_hdl->tif_ops->cfr_support_enable(psoc, tgt_hdl, evt_buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* target_if_set_pktlog_checksum - Set pktlog checksum
|
||||
* @pdev: pdev object
|
||||
* @tgt_hdl: target_psoc_info pointer
|
||||
* @checksum: checksum received from FW
|
||||
*
|
||||
* API to set pktlog checksum
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
static inline void target_if_set_pktlog_checksum(struct wlan_objmgr_pdev *pdev,
|
||||
struct target_psoc_info *tgt_hdl, uint32_t checksum)
|
||||
{
|
||||
if ((tgt_hdl->tif_ops) &&
|
||||
(tgt_hdl->tif_ops->set_pktlog_checksum))
|
||||
tgt_hdl->tif_ops->set_pktlog_checksum(pdev, checksum);
|
||||
}
|
||||
|
||||
/**
|
||||
* target_if_atf_cfg_enable - Enable ATF config
|
||||
* @psoc: psoc object
|
||||
|
Referencia en una nueva incidencia
Block a user