qcacld-3.0: Add DBS check for all chain mask programming
Add DBS check for all chain mask programming. Currently the check
is present only for band specific chain mask parameters.
Change-Id: I415a8e8f666961b90d1cd9130b3c33eecb62c1df
CRs-Fixed: 2184255
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index e358d65..bbf6ad8 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -4130,6 +4130,13 @@
return 0;
}
+ if (hdd_ctx->config->dual_mac_feature_disable !=
+ DISABLE_DBS_CXN_AND_SCAN) {
+ hdd_info("DBS enabled(%d). skip chain mask programming",
+ hdd_ctx->config->dual_mac_feature_disable);
+ return 0;
+ }
+
if (hdd_ctx->config->txchainmask1x1) {
ret_val = sme_cli_set_command(adapter->session_id,
WMI_PDEV_PARAM_TX_CHAIN_MASK,
@@ -4159,11 +4166,6 @@
return 0;
}
- if (!hdd_ctx->config->dual_mac_feature_disable) {
- hdd_info("DBS enabled. skip per band chain mask");
- return 0;
- }
-
if (hdd_ctx->config->tx_chain_mask_2g) {
ret_val = sme_cli_set_command(adapter->session_id,
WMI_PDEV_PARAM_TX_CHAIN_MASK_2G,