Переглянути джерело

qcacmn: Add PTP timestamp socket options support(wmi part)

Add tsf64 enable/disable related functions and definitions.

Change-Id: I81da3b9d0596055810409ff5d7ae2d3c2aef8a5d
CRs-Fixed: 2454513
Jiani Liu 5 роки тому
батько
коміт
25d847280f
2 змінених файлів з 8 додано та 0 видалено
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 6 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -5311,6 +5311,7 @@ typedef enum {
 	wmi_service_wpa3_ft_suite_b_support,
 	wmi_service_ft_fils,
 	wmi_service_adaptive_11r_support,
+	wmi_service_tx_compl_tsf64,
 	wmi_services_max,
 } wmi_conv_service_ids;
 #define WMI_SERVICE_UNAVAILABLE 0xFFFF
@@ -5513,6 +5514,7 @@ typedef struct {
 	uint32_t max_bssid_indicator;
 	uint32_t eapol_minrate_set:1,
 		 eapol_minrate_ac_set:2;
+	bool tstamp64_en;
 } target_resource_config;
 
 /**

+ 6 - 0
wmi/src/wmi_unified_tlv.c

@@ -6510,6 +6510,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 		WMI_RSRC_CFG_FLAG_PEER_UNMAP_RESPONSE_SUPPORT_SET(
 			resource_cfg->flag1, 1);
 
+	if (tgt_res_cfg->tstamp64_en)
+		WMI_RSRC_CFG_FLAG_TX_COMPLETION_TX_TSF64_ENABLE_SET(
+						resource_cfg->flag1, 1);
+
 	wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
 	resource_cfg->peer_map_unmap_v2_support =
 		tgt_res_cfg->peer_map_unmap_v2;
@@ -12466,6 +12470,8 @@ static void populate_tlv_service(uint32_t *wmi_service)
 			WMI_SERVICE_WPA3_FT_FILS;
 	wmi_service[wmi_service_adaptive_11r_support] =
 			WMI_SERVICE_ADAPTIVE_11R_ROAM;
+	wmi_service[wmi_service_tx_compl_tsf64] =
+			WMI_SERVICE_TX_COMPL_TSF64;
 }
 
 /**