qcacmn: Add API to extract params from WMI ready event

WMI ready event provides num_dscp_tid, num_total_peers and other
information that  is used. Add API to extract these params.

Change-Id: I85ffc43f20935d84de133591020468c5e5f102de
CRs-Fixed: 2141667
This commit is contained in:
Kiran Venkatappa
2017-11-10 20:50:12 +05:30
committed by snandini
parent a5817e7b53
commit 094c24f5d9
3 changed files with 76 additions and 0 deletions

View File

@@ -4717,6 +4717,27 @@ wmi_host_mac_addr *wmi_ready_extract_mac_addr_list(void *wmi_hdl, void *ev,
return NULL;
}
/**
* wmi_extract_ready_params() - Extract data from ready event apart from
* status, macaddr and version.
* @wmi_handle: Pointer to WMI handle.
* @evt_buf: Pointer to Ready event buffer.
* @ev_param: Pointer to host defined struct to copy the data from event.
*
* Return: QDF_STATUS_SUCCESS on success.
*/
QDF_STATUS wmi_extract_ready_event_params(void *wmi_hdl,
void *evt_buf, struct wmi_host_ready_ev_param *ev_param)
{
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
if (wmi_handle->ops->extract_ready_event_params)
return wmi_handle->ops->extract_ready_event_params(wmi_handle,
evt_buf, ev_param);
return QDF_STATUS_E_FAILURE;
}
/**
* wmi_extract_dbglog_data_len() - extract debuglog data length
* @wmi_handle: wmi handle