From b59458c28415f7fb8e97c6ae66e2bbddaf0c4b22 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Fri, 24 Jan 2020 19:02:52 +0530 Subject: [PATCH] qcacmn: Send val of separate iface support for NAN INI to Fw Update value of new ini for separate iface support for NAN "nan_separate_iface_support" to fw through a command WMI_INIT_CMDID. Change-Id: I55830e0d16d86ee5a0bfa7d3e44c6309c0d3d54b CRs-Fixed: 2612010 --- wmi/inc/wmi_unified_param.h | 2 ++ wmi/src/wmi_unified_tlv.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 29f560ddd0ee..4ab5c8113770 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -5189,6 +5189,7 @@ struct wmi_host_fw_abi_ver { * @ast_3_flow_mask_enable: mask to enable flow support for ast index 3 * @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 + * @nan_separate_iface_support: Separate iface creation for NAN */ typedef struct { uint32_t num_vdevs; @@ -5285,6 +5286,7 @@ typedef struct { ast_3_flow_mask_enable:4, ast_tid_high_mask_enable:8, ast_tid_low_mask_enable:8; + bool nan_separate_iface_support; } target_resource_config; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index a801a82de975..f20b5a93b242 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -6868,6 +6868,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg, WMI_MSDU_FLOW_TID_VALID_LOW_MASKS_SET( resource_cfg->msdu_flow_override_config1, tgt_res_cfg->ast_tid_low_mask_enable); + WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_IFACE_SUPPORT_SET( + resource_cfg->host_service_flags, + tgt_res_cfg->nan_separate_iface_support); + } /* copy_hw_mode_id_in_init_cmd() - Helper routine to copy hw_mode in init cmd