qcacmn: Add tlv formation of wmi init commands in common wmi layer
Move tlv formation of wmi init commands from umac to common wmi layer. Change-Id: I8511de51f341401b5ba64581ba0f6840cfee1590 CRs-Fixed: 983619
This commit is contained in:
@@ -2609,3 +2609,72 @@ CDF_STATUS wmi_unified_process_set_ie_info_cmd(void *wmi_hdl,
|
||||
|
||||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_send_init_cmd() - wmi init command
|
||||
* @wmi_handle: pointer to wmi handle
|
||||
* @res_cfg: resource config
|
||||
* @num_mem_chunks: no of mem chunck
|
||||
* @mem_chunk: pointer to mem chunck structure
|
||||
*
|
||||
* This function sends IE information to firmware
|
||||
*
|
||||
* Return: CDF_STATUS_SUCCESS for success otherwise failure
|
||||
*
|
||||
*/
|
||||
CDF_STATUS wmi_unified_send_init_cmd(void *wmi_hdl,
|
||||
wmi_resource_config *res_cfg,
|
||||
uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
|
||||
bool action)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_init_cmd)
|
||||
return wmi_handle->ops->send_init_cmd(wmi_handle,
|
||||
res_cfg, num_mem_chunks, mem_chunk, action);
|
||||
|
||||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_send_saved_init_cmd() - wmi init command
|
||||
* @wmi_handle: pointer to wmi handle
|
||||
*
|
||||
* This function sends IE information to firmware
|
||||
*
|
||||
* Return: CDF_STATUS_SUCCESS for success otherwise failure
|
||||
*
|
||||
*/
|
||||
CDF_STATUS wmi_unified_send_saved_init_cmd(void *wmi_hdl)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_saved_init_cmd)
|
||||
return wmi_handle->ops->send_saved_init_cmd(wmi_handle);
|
||||
|
||||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/**
|
||||
* wmi_unified_save_fw_version_cmd() - save fw version
|
||||
* @wmi_handle: pointer to wmi handle
|
||||
* @res_cfg: resource config
|
||||
* @num_mem_chunks: no of mem chunck
|
||||
* @mem_chunk: pointer to mem chunck structure
|
||||
*
|
||||
* This function sends IE information to firmware
|
||||
*
|
||||
* Return: CDF_STATUS_SUCCESS for success otherwise failure
|
||||
*
|
||||
*/
|
||||
CDF_STATUS wmi_unified_save_fw_version_cmd(void *wmi_hdl,
|
||||
void *evt_buf)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->save_fw_version_cmd)
|
||||
return wmi_handle->ops->save_fw_version_cmd(wmi_handle,
|
||||
evt_buf);
|
||||
|
||||
return CDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user