Эх сурвалжийг харах

qcacmn: Update target resorce config with TWT params

Number of AP TWT and AP TWT stations are added in
target_resource_config to provide the configuration for TWT.
Add support in WMI to provide appropriate defaults for TWT.

Change-Id: Ica91f981d59a015b0b4cda41ba951b6ba22e8120
CRs-Fixed: 2212667
Kiran Venkatappa 7 жил өмнө
parent
commit
3619e6668f
1 өөрчлөгдсөн 19 нэмэгдсэн , 0 устгасан
  1. 19 0
      wmi_unified_tlv.c

+ 19 - 0
wmi_unified_tlv.c

@@ -13237,6 +13237,23 @@ send_coex_config_cmd_tlv(wmi_unified_t wmi_handle,
 	return ret;
 }
 
+
+#ifdef WLAN_SUPPORT_TWT
+static void wmi_copy_twt_resource_config(wmi_resource_config *resource_cfg,
+					target_resource_config *tgt_res_cfg)
+{
+	resource_cfg->twt_ap_pdev_count = tgt_res_cfg->twt_ap_pdev_count;
+	resource_cfg->twt_ap_sta_count = tgt_res_cfg->twt_ap_sta_count;
+}
+#else
+static void wmi_copy_twt_resource_config(wmi_resource_config *resource_cfg,
+					target_resource_config *tgt_res_cfg)
+{
+	resource_cfg->twt_ap_pdev_count = 0;
+	resource_cfg->twt_ap_sta_count = 0;
+}
+#endif
+
 static
 void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 				target_resource_config *tgt_res_cfg)
@@ -13322,6 +13339,8 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 			resource_cfg->flag1, 1);
 	if (tgt_res_cfg->cce_disable)
 		WMI_RSRC_CFG_FLAG_TCL_CCE_DISABLE_SET(resource_cfg->flag1, 1);
+
+	wmi_copy_twt_resource_config(resource_cfg, tgt_res_cfg);
 }
 
 /* copy_hw_mode_id_in_init_cmd() - Helper routine to copy hw_mode in init cmd