qcacld-3.0: Change prior conditions required for chainmask

Change the prior conditions required for configuring Rx Chainmask &
Tx Chainmask.
Below conditions should be met for setting chainmask:
1. Antenna sharing should be disabled.
2. If gEnable2x2 is 1 then enableBTChainSeparation must be 1
   else gEnable2x2 should be 0.
3. DBS should be disabled (gDualMacFeatureDisable = 1)
   or HW should be DBS 2x2 capable
4. set TX/RX chainmask 3 in ini (gSetTxChainmask1x1/gSetRxChainmask1x1)
5. HW should support TX/RX chainmask as 3

Change-Id: If83c55af47abb591cdf1b5d2e3981d80bc305bf2
CRs-Fixed: 2705520
This commit is contained in:
Utkarsh Bhatnagar
2020-06-10 00:14:09 +05:30
committed by nshrivas
parent 9e3400ac77
commit 8dc550caba

View File

@@ -919,7 +919,7 @@ bool wlan_mlme_configure_chain_mask_supported(struct wlan_objmgr_psoc *psoc)
hw_dbs_2x2_cap = policy_mgr_is_hw_dbs_2x2_capable(psoc);
enable2x2 = mlme_obj->cfg.vht_caps.vht_cap_info.enable2x2;
if (!enable_bt_chain_sep || as_enabled || enable2x2 ||
if ((enable2x2 && !enable_bt_chain_sep) || as_enabled ||
(!hw_dbs_2x2_cap && dual_mac_feature != DISABLE_DBS_CXN_AND_SCAN)) {
mlme_legacy_debug("Cannot configure chainmask enable_bt_chain_sep %d as_enabled %d enable2x2 %d hw_dbs_2x2_cap %d dual_mac_feature %d",
enable_bt_chain_sep, as_enabled, enable2x2,