mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacmn: CE Debug Enhancements WMI interface
Add WMI interface for the smart logging feature. Change-Id: Ife3784020d1b9458c2b09b6a2f31f55aab5f57ec CRs-Fixed: 2001507
This commit is contained in:
parent
6f00d693a9
commit
b69942b3c9
8 changed files with 283 additions and 2 deletions
|
|
@ -199,6 +199,7 @@ struct tgt_info {
|
|||
* @add_11ax_modes: Adds 11ax modes to reg cap
|
||||
* @set_default_tgt_config: Sets target config with default values
|
||||
* @sw_version_check: Checks the SW version
|
||||
* @smart_log_enable: Enable Smart Logs feature
|
||||
*/
|
||||
struct target_ops {
|
||||
QDF_STATUS (*ext_resource_config_enable)
|
||||
|
|
@ -253,6 +254,9 @@ struct target_ops {
|
|||
struct wlan_objmgr_psoc *psoc,
|
||||
struct target_psoc_info *tgt_hdl,
|
||||
uint8_t *evt_buf);
|
||||
void (*smart_log_enable)
|
||||
(struct wlan_objmgr_psoc *psoc,
|
||||
struct target_psoc_info *tgt_info, uint8_t *event);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -2067,5 +2071,24 @@ static inline int32_t target_psoc_get_num_hw_modes
|
|||
|
||||
return tgt_hdl->info.service_ext_param.num_hw_modes;
|
||||
}
|
||||
|
||||
/**
|
||||
* target_if_smart_log enable() - Enable Smart Logs
|
||||
* @psoc: psoc object
|
||||
* @tgt_hdl: target_psoc_info pointer
|
||||
* @evt_buf: Service ready Event buffer received from FW
|
||||
*
|
||||
* API to enable Smart Logs
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
static inline void target_if_smart_log_enable
|
||||
(struct wlan_objmgr_psoc *psoc,
|
||||
struct target_psoc_info *tgt_hdl,
|
||||
uint8_t *evt_buf)
|
||||
{
|
||||
if ((tgt_hdl->tif_ops) && (tgt_hdl->tif_ops->smart_log_enable))
|
||||
tgt_hdl->tif_ops->smart_log_enable(psoc, tgt_hdl, evt_buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -162,6 +162,7 @@ static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle,
|
|||
target_if_info("Wait for EXT message");
|
||||
}
|
||||
|
||||
target_if_smart_log_enable(psoc, tgt_hdl, event);
|
||||
exit:
|
||||
return err_code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue