qcacmn: Add wmi service for wlan time sync ftm feature

Add firmware service capability for wlan time sync feature.

CRs-Fixed: 2610094
Change-Id: I7ae0e004ef5dae37d10af3b844199008ab41141a
This commit is contained in:
Surabhi Vishnoi
2020-01-21 22:45:49 +05:30
committed by nshrivas
parent c530afdb5a
commit 2339b27eef
2 changed files with 9 additions and 0 deletions

View File

@@ -5058,6 +5058,7 @@ typedef enum {
wmi_service_nan_vdev, wmi_service_nan_vdev,
wmi_service_multiple_vdev_restart_ext, wmi_service_multiple_vdev_restart_ext,
wmi_service_peer_delete_no_peer_flush_tids_cmd, wmi_service_peer_delete_no_peer_flush_tids_cmd,
wmi_service_time_sync_ftm,
wmi_services_max, wmi_services_max,
} wmi_conv_service_ids; } wmi_conv_service_ids;
#define WMI_SERVICE_UNAVAILABLE 0xFFFF #define WMI_SERVICE_UNAVAILABLE 0xFFFF
@@ -5193,6 +5194,7 @@ struct wmi_host_fw_abi_ver {
* @ast_tid_high_mask_enable: enable tid valid mask for high priority flow * @ast_tid_high_mask_enable: enable tid valid mask for high priority flow
* @ast_tid_low_mask_enable: enable tid valid mask for low priority flow * @ast_tid_low_mask_enable: enable tid valid mask for low priority flow
* @nan_separate_iface_support: Separate iface creation for NAN * @nan_separate_iface_support: Separate iface creation for NAN
* @time_sync_ftm: enable ftm based time sync
*/ */
typedef struct { typedef struct {
uint32_t num_vdevs; uint32_t num_vdevs;
@@ -5290,6 +5292,7 @@ typedef struct {
ast_tid_high_mask_enable:8, ast_tid_high_mask_enable:8,
ast_tid_low_mask_enable:8; ast_tid_low_mask_enable:8;
bool nan_separate_iface_support; bool nan_separate_iface_support;
bool time_sync_ftm;
} target_resource_config; } target_resource_config;
/** /**

View File

@@ -6804,6 +6804,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
WMI_RSRC_CFG_FLAG_IPA_DISABLE_SET(resource_cfg->flag1, WMI_RSRC_CFG_FLAG_IPA_DISABLE_SET(resource_cfg->flag1,
tgt_res_cfg->ipa_disable); tgt_res_cfg->ipa_disable);
if (tgt_res_cfg->time_sync_ftm)
WMI_RSRC_CFG_FLAG_AUDIO_SYNC_SUPPORT_SET(resource_cfg->flag1,
1);
wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg); wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
resource_cfg->peer_map_unmap_v2_support = resource_cfg->peer_map_unmap_v2_support =
tgt_res_cfg->peer_map_unmap_v2; tgt_res_cfg->peer_map_unmap_v2;
@@ -14042,6 +14046,8 @@ static void populate_tlv_service(uint32_t *wmi_service)
WMI_SERVICE_PEER_DELETE_NO_PEER_FLUSH_TIDS_CMD; WMI_SERVICE_PEER_DELETE_NO_PEER_FLUSH_TIDS_CMD;
wmi_service[wmi_service_multiple_vdev_restart_ext] = wmi_service[wmi_service_multiple_vdev_restart_ext] =
WMI_SERVICE_UNAVAILABLE; WMI_SERVICE_UNAVAILABLE;
wmi_service[wmi_service_time_sync_ftm] =
WMI_SERVICE_AUDIO_SYNC_SUPPORT;
} }
/** /**