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
2023-03-27 16:37:37 +05:30
提交者 Madan Koyyalamudi
父节点 5cfdbdb306
当前提交 0216192471
修改 2 个文件,包含 6 行新增0 行删除

查看文件

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

查看文件

@@ -9396,6 +9396,10 @@ void wmi_copy_resource_config(wmi_resource_config *resource_cfg,
WMI_RSRC_CFG_FLAGS2_NOTIFY_FRAME_CONFIG_ENABLE_SET( WMI_RSRC_CFG_FLAGS2_NOTIFY_FRAME_CONFIG_ENABLE_SET(
resource_cfg->flags2, 1); 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); wmi_copy_latency_flowq_support(resource_cfg, tgt_res_cfg);
} }