qcacmn: Add function to extract the events for FTM TIME SYNC feature

This patch adds the function to extract and parse the wmi events
WMI_VDEV_AUDIO_SYNC_START_STOP_EVENTID and
WMI_VDEV_AUDIO_SYNC_Q_MASTER_SLAVE_OFFSET_EVENTID. These events are
required for ftm time sync feature.

Change-Id: Ib17da82b7a8abfcff5d18125a0ba0e5249d6bf54
CRs-Fixed: 2615452
This commit is contained in:
Surabhi Vishnoi
2020-01-28 19:05:16 +05:30
committed by nshrivas
parent f2d6649390
commit d6e10c598e
5 changed files with 201 additions and 13 deletions

View File

@@ -3125,9 +3125,9 @@ wmi_unified_extract_roam_11kv_stats(wmi_unified_t wmi, void *evt_buf,
}
#ifdef FEATURE_WLAN_TIME_SYNC_FTM
QDF_STATUS wmi_send_wlan_time_sync_ftm_trigger(wmi_unified_t wmi_handle,
uint32_t vdev_id,
bool burst_mode)
QDF_STATUS wmi_unified_send_wlan_time_sync_ftm_trigger(wmi_unified_t wmi_handle,
uint32_t vdev_id,
bool burst_mode)
{
if (wmi_handle->ops->send_wlan_time_sync_ftm_trigger_cmd)
return wmi_handle->ops->send_wlan_time_sync_ftm_trigger_cmd
@@ -3136,9 +3136,9 @@ QDF_STATUS wmi_send_wlan_time_sync_ftm_trigger(wmi_unified_t wmi_handle,
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS wmi_send_wlan_time_sync_qtime(wmi_unified_t wmi_handle,
uint32_t vdev_id,
uint64_t lpass_ts)
QDF_STATUS wmi_unified_send_wlan_time_sync_qtime(wmi_unified_t wmi_handle,
uint32_t vdev_id,
uint64_t lpass_ts)
{
if (wmi_handle->ops->send_wlan_ts_qtime_cmd)
return wmi_handle->ops->send_wlan_ts_qtime_cmd(wmi_handle,
@@ -3146,4 +3146,28 @@ QDF_STATUS wmi_send_wlan_time_sync_qtime(wmi_unified_t wmi_handle,
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS wmi_unified_extract_time_sync_ftm_start_stop_params(
wmi_unified_t wmi_handle, void *evt_buf,
struct ftm_time_sync_start_stop_params *param)
{
if (wmi_handle->ops->extract_time_sync_ftm_start_stop_event)
return
wmi_handle->ops->extract_time_sync_ftm_start_stop_event(
wmi_handle, evt_buf, param);
return QDF_STATUS_E_FAILURE;
}
QDF_STATUS wmi_unified_extract_time_sync_ftm_offset(
wmi_unified_t wmi_handle, void *evt_buf,
struct ftm_time_sync_offset *param)
{
if (wmi_handle->ops->extract_time_sync_ftm_offset_event)
return
wmi_handle->ops->extract_time_sync_ftm_offset_event(
wmi_handle, evt_buf, param);
return QDF_STATUS_E_FAILURE;
}
#endif /* FEATURE_WLAN_TIME_SYNC_FTM */