qcacmn: Add support for WMI over QMI

Add support for WMI over QMI to reduce power consumption for
periodic stats report.

Change-Id: Ic57b2bd18be803c97ffeea2e0073751d31e02202
CRs-fixed: 2521835
This commit is contained in:
Manikandan Mohan
2019-08-23 08:47:21 -07:00
committed by nshrivas
parent 258eb6429b
commit 9b1b93cfcd
5 changed files with 201 additions and 8 deletions

View File

@@ -276,6 +276,45 @@ wmi_unified_cmd_send_fl(wmi_unified_t wmi_handle, wmi_buf_t buf,
uint32_t buflen, uint32_t cmd_id,
const char *func, uint32_t line);
#ifdef WLAN_FEATURE_WMI_SEND_RECV_QMI
/**
* wmi_unified_cmd_send_over_qmi() - generic function to send unified WMI command
* over QMI
* @wmi_handle: handle to WMI.
* @buf: wmi command buffer
* @buflen: wmi command buffer length
* @cmd_id: WMI cmd id
*
* Return: QDF_STATUS
*/
QDF_STATUS wmi_unified_cmd_send_over_qmi(struct wmi_unified *wmi_handle,
wmi_buf_t buf, uint32_t buflen,
uint32_t cmd_id);
/**
* wmi_process_qmi_fw_event() - Process WMI event received over QMI
* @wmi_cb_ctx: WMI handle received as call back context
* @buf: Pointer to WMI event buffer
* @len: Len of WMI buffer received
*
* Return: None
*/
int wmi_process_qmi_fw_event(void *wmi_cb_ctx, void *buf, int len);
#else
static inline
QDF_STATUS wmi_unified_cmd_send_over_qmi(struct wmi_unified *wmi_handle,
wmi_buf_t buf, uint32_t buflen,
uint32_t cmd_id)
{
return QDF_STATUS_E_NOSUPPORT;
}
static inline int wmi_process_qmi_fw_event(void *wmi_cb_ctx, void *buf, int len)
{
return -EINVAL;
}
#endif
/**
* wmi_unified_register_event() - WMI event handler
* registration function for converged components