qcacmn: Add pdev_id in Pdev AST reserve event

pdev_id is required to identify the pdev object on which this event is
recieved. Add pdev_id in the event extract API.

Change-Id: Ia910d42af6a9d6099da1b7781601b0320dff80ba
CRs-Fixed: 2003898
This commit is contained in:
Kiran Venkatappa
2017-02-08 14:57:16 +05:30
committed by qcabuildsw
parent c7d68db191
commit fee9e54244
5 changed files with 18 additions and 7 deletions

View File

@@ -1232,7 +1232,7 @@ QDF_STATUS wmi_extract_gpio_input_ev_param(void *wmi_hdl,
void *evt_buf, uint32_t *gpio_num);
QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param(void *wmi_hdl,
void *evt_buf, uint32_t *result);
void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param);
QDF_STATUS wmi_extract_nfcal_power_ev_param(void *wmi_hdl, void *evt_buf,
wmi_host_pdev_nfcal_power_all_channels_event *param);

View File

@@ -7383,4 +7383,14 @@ struct wmi_host_fips_event_param {
uint32_t data_len;
uint32_t *data;
};
/**
* struct wmi_host_proxy_ast_reserve_param
* @pdev_id: pdev id
* @result: result
*/
struct wmi_host_proxy_ast_reserve_param {
uint32_t pdev_id;
uint32_t result;
};
#endif /* _WMI_UNIFIED_PARAM_H_ */

View File

@@ -1055,7 +1055,7 @@ QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
void *evt_buf, uint32_t *gpio_num);
QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
void *evt_buf, uint32_t *result);
void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param);
QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
void *evt_buf,

View File

@@ -5538,18 +5538,18 @@ QDF_STATUS wmi_extract_gpio_input_ev_param(void *wmi_hdl,
* param from event
* @wmi_handle: wmi handle
* @param evt_buf: pointer to event buffer
* @param result: Pointer to hold reserve ast entry param
* @param param: Pointer to hold reserve ast entry param
*
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
*/
QDF_STATUS wmi_extract_pdev_reserve_ast_ev_param(void *wmi_hdl,
void *evt_buf, uint32_t *result)
void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param)
{
wmi_unified_t wmi = (wmi_unified_t) wmi_hdl;
if (wmi->ops->extract_pdev_reserve_ast_ev_param)
return wmi->ops->extract_pdev_reserve_ast_ev_param(wmi,
evt_buf, result);
evt_buf, param);
return QDF_STATUS_E_FAILURE;
}

View File

@@ -6360,12 +6360,13 @@ static QDF_STATUS extract_gpio_input_ev_param_non_tlv(wmi_unified_t wmi_handle,
*/
static QDF_STATUS extract_pdev_reserve_ast_ev_param_non_tlv(
wmi_unified_t wmi_handle,
void *evt_buf, uint32_t *result)
void *evt_buf, struct wmi_host_proxy_ast_reserve_param *param)
{
wmi_pdev_reserve_ast_entry_event *ev =
(wmi_pdev_reserve_ast_entry_event *) evt_buf;
*result = ev->result;
param->result = ev->result;
param->pdev_id = WMI_NON_TLV_DEFAULT_PDEV_ID;
return QDF_STATUS_SUCCESS;
}