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
This commit is contained in:
Uraj Sasan
2023-03-27 16:37:37 +05:30
committed by Madan Koyyalamudi
parent 5cfdbdb306
commit 0216192471
2 changed files with 6 additions and 0 deletions

View File

@@ -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;
/**

View File

@@ -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);
}