qcacmn: Change FIPS event extract APIs
Add pdev_id in FIPS extract params to be used to get appropriate pdev. Also refactor extart APIs to get all data in one API and implement TLV APIs. Change-Id: Ib58d54ad0dcc25814e58f45e7e4a83d01549a523 CRs-Fixed: 1115213
This commit is contained in:
@@ -5836,36 +5836,17 @@ static QDF_STATUS extract_dcs_im_tgt_stats_non_tlv(wmi_unified_t wmi_handle,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* extract_fips_event_error_status_non_tlv() - extract fips event error status
|
||||
* @wmi_handle: wmi handle
|
||||
* @param evt_buf: pointer to event buffer
|
||||
* @param err_status: Pointer to hold error status
|
||||
*
|
||||
* Return: 0 for success or error code
|
||||
*/
|
||||
static QDF_STATUS extract_fips_event_error_status_non_tlv(
|
||||
wmi_unified_t wmi_handle, void *evt_buf,
|
||||
uint32_t *err_status)
|
||||
{
|
||||
wmi_pdev_fips_event *event = (wmi_pdev_fips_event *)evt_buf;
|
||||
|
||||
*err_status = event->error_status;
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* extract_fips_event_data_non_tlv() - extract fips event data
|
||||
* @wmi_handle: wmi handle
|
||||
* @param evt_buf: pointer to event buffer
|
||||
* @param data_len: Pointer to hold fips data length
|
||||
* @param data: Double pointer to hold fips data
|
||||
* @param param: pointer FIPS event params
|
||||
*
|
||||
* Return: 0 for success or error code
|
||||
*/
|
||||
static QDF_STATUS extract_fips_event_data_non_tlv(wmi_unified_t wmi_handle,
|
||||
void *evt_buf,
|
||||
uint32_t *data_len, uint32_t **data)
|
||||
struct wmi_host_fips_event_param *param)
|
||||
{
|
||||
wmi_pdev_fips_event *event = (wmi_pdev_fips_event *)evt_buf;
|
||||
#ifdef BIG_ENDIAN_HOST
|
||||
@@ -5912,8 +5893,10 @@ static QDF_STATUS extract_fips_event_data_non_tlv(wmi_unified_t wmi_handle,
|
||||
/*************************************************************/
|
||||
}
|
||||
#endif
|
||||
*data = event->data;
|
||||
*data_len = event->data_len;
|
||||
param->data = event->data;
|
||||
param->data_len = event->data_len;
|
||||
param->error_status = event->error_status;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -8096,8 +8079,6 @@ struct wmi_ops non_tlv_ops = {
|
||||
extract_tx_data_traffic_ctrl_ev_non_tlv,
|
||||
.extract_vdev_extd_stats = extract_vdev_extd_stats_non_tlv,
|
||||
.extract_fips_event_data = extract_fips_event_data_non_tlv,
|
||||
.extract_fips_event_error_status =
|
||||
extract_fips_event_error_status_non_tlv,
|
||||
.extract_mumimo_tx_count_ev_param =
|
||||
extract_mumimo_tx_count_ev_param_non_tlv,
|
||||
.extract_peer_gid_userpos_list_ev_param =
|
||||
|
Reference in New Issue
Block a user