qcacmn: Add WMI for estimated airtime calculation
Add support for sending WMI command to firmware to measure estimated airtime that a new client will get and populate the result that firmware returns in the ESP IE. Change-Id: Ic5fcb11100ecd0597ba02dfa5512e2f4ff3558c9 CRs-Fixed: 2261469
This commit is contained in:

committed by
nshrivas

parent
ab28071e57
commit
d01ccdf6eb
@@ -5422,6 +5422,27 @@ QDF_STATUS wmi_extract_peer_gid_userpos_list_ev_param(void *wmi_hdl,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_extract_esp_estimate_ev_param() - extract air time from event
|
||||
* @wmi_handle: wmi handle
|
||||
* @evt_buf: pointer to event buffer
|
||||
* @param: Pointer to hold esp event
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS
|
||||
wmi_extract_esp_estimate_ev_param(void *wmi_hdl, void *evt_buf,
|
||||
struct esp_estimation_event *param)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t)wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->extract_esp_estimation_ev_param)
|
||||
return wmi_handle->ops->extract_esp_estimation_ev_param(
|
||||
wmi_handle, evt_buf, param);
|
||||
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_extract_pdev_caldata_version_check_ev_param() - extract caldata
|
||||
* from event
|
||||
|
Reference in New Issue
Block a user