From a2a2c714e1c4498ae29f20fa0f7ee4fc4f3ecf7c Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Wed, 21 Feb 2018 18:58:29 +0530 Subject: [PATCH] qcacmn: Add qdf time api to get time of the day in millisec qcacld-2.0 to qcacmn propagation Adds qdf time api to get time of the day in millisec Also send host timestamp to firmware, so that firmware can print the logs timestamp in sync with host via the wmi interface,with api wmi_send_time_stamp_sync_cmd_tlv() Change-Id: Id6acfc5227fdca2fbf8d266998fdfc4046adc5f4 CRs-Fixed: 2193978 --- wmi_unified_api.h | 8 ++++++++ wmi_unified_priv.h | 1 + 2 files changed, 9 insertions(+) diff --git a/wmi_unified_api.h b/wmi_unified_api.h index 4620c94fa1..ebcdd0d9dd 100644 --- a/wmi_unified_api.h +++ b/wmi_unified_api.h @@ -162,6 +162,14 @@ void wmi_mgmt_cmd_record(wmi_unified_t wmi_handle, uint32_t cmd, */ void wmi_unified_detach(struct wmi_unified *wmi_handle); +/** + * API to sync time between host and firmware + * + * @param wmi_handle : handle to WMI. + * @return void. + */ +void wmi_send_time_stamp_sync_cmd_tlv(void *wmi_hdl); + void wmi_unified_remove_work(struct wmi_unified *wmi_handle); diff --git a/wmi_unified_priv.h b/wmi_unified_priv.h index 7e4397e681..30bf99ac96 100644 --- a/wmi_unified_priv.h +++ b/wmi_unified_priv.h @@ -1544,6 +1544,7 @@ QDF_STATUS (*send_invoke_neighbor_report_cmd)(wmi_unified_t wmi_handle, struct wmi_invoke_neighbor_report_params *params); void (*wmi_pdev_id_conversion_enable)(wmi_unified_t wmi_handle); +void (*send_time_stamp_sync_cmd)(wmi_unified_t wmi_handle); void (*wmi_free_allocated_event)(A_UINT32 cmd_event_id, void **wmi_cmd_struct_ptr); int (*wmi_check_and_pad_event)(void *os_handle, void *param_struc_ptr,