From 4bf0faa2942ebfe87a002fe8344e09ae44b7e958 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 18 May 2021 13:23:02 +0530 Subject: [PATCH] qcacmn: Add support to indicate nan channel support to fw Add a new flag to indicate to fw that host will set the nan_disable_flag for channels. Change-Id: Ibf627bff77e1afb0849149a63981ca50476f6bfd CRs-Fixed: 2949481 --- wmi/src/wmi_unified_tlv.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 6a8e5bd235..33b4dd8c28 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -7302,6 +7302,19 @@ static void wmi_copy_twt_resource_config(wmi_resource_config *resource_cfg, } #endif +#ifdef WLAN_FEATURE_NAN +static void wmi_set_nan_channel_support(wmi_resource_config *resource_cfg) +{ + WMI_RSRC_CFG_HOST_SERVICE_FLAG_NAN_CHANNEL_SUPPORT_SET( + resource_cfg->host_service_flags, 1); +} +#else +static inline +void wmi_set_nan_channel_support(wmi_resource_config *resource_cfg) +{ +} +#endif + static void wmi_copy_resource_config(wmi_resource_config *resource_cfg, target_resource_config *tgt_res_cfg) @@ -7536,6 +7549,8 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg, WMI_RSRC_CFG_HOST_SERVICE_FLAG_REG_CC_EXT_SUPPORT_SET( resource_cfg->host_service_flags, tgt_res_cfg->is_reg_cc_ext_event_supported); + + wmi_set_nan_channel_support(resource_cfg); } /* copy_hw_mode_id_in_init_cmd() - Helper routine to copy hw_mode in init cmd