Jelajahi Sumber

qcacmn: Populate flags2 bit for rf_swtich

Get the bit value from ini config and populate the resource_cfg,
flags2 bit related to rf_switch which will be later passed via
WMI INIT command to FW.

Change-Id: Ic642dda55850a49944bcf43838c7c5c79bed3587
CRs-Fixed: 3475088
Uraj Sasan 2 tahun lalu
induk
melakukan
0216192471
2 mengubah file dengan 6 tambahan dan 0 penghapusan
  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

@@ -6716,6 +6716,7 @@ struct target_feature_set {
  * @notify_frame_support: capability to mark notify frames from host
  * @dp_peer_meta_data_ver: datapath peer meta data version flag
  * @tx_ilp_enable: capability to support TX ILP from host
+ * @rf_path: Indicates RF path 0 primary, 1 secondary
  */
 typedef struct {
 	uint32_t num_vdevs;
@@ -6847,6 +6848,7 @@ typedef struct {
 #ifdef DP_TX_PACKET_INSPECT_FOR_ILP
 	uint8_t tx_ilp_enable;
 #endif
+	bool rf_path;
 } target_resource_config;
 
 /**

+ 4 - 0
wmi/src/wmi_unified_tlv.c

@@ -9396,6 +9396,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
 		WMI_RSRC_CFG_FLAGS2_NOTIFY_FRAME_CONFIG_ENABLE_SET(
 			resource_cfg->flags2, 1);
 
+	if (tgt_res_cfg->rf_path)
+		WMI_RSRC_CFG_FLAGS2_RF_PATH_MODE_SET(
+			resource_cfg->flags2, tgt_res_cfg->rf_path);
+
 	wmi_copy_latency_flowq_support(resource_cfg, tgt_res_cfg);
 }