Преглед изворни кода

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
Abhinav Kumar пре 5 година
родитељ
комит
b59458c284
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 4 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
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;
 
 /**

+ 4 - 0
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