summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Rawat <naveenrawat@codeaurora.org>2018-02-05 10:39:06 -0800
committersnandini <snandini@codeaurora.org>2018-02-06 14:38:22 -0800
commit2262c12e21db800884c4347fcf59ae4acfa43810 (patch)
tree089ef4674434fabfeb21a3b7d365e708839b8438
parent84e7eb04c051ae4966c70f0d0c6db56591a26e0a (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index f62bf85c5ba8..7d898f9c8f11 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -3711,6 +3711,13 @@ static int hdd_configure_chain_mask(hdd_adapter_t *adapter)
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->sessionId,
WMI_PDEV_PARAM_TX_CHAIN_MASK,
@@ -3740,11 +3747,6 @@ static int hdd_configure_chain_mask(hdd_adapter_t *adapter)
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->sessionId,
WMI_PDEV_PARAM_TX_CHAIN_MASK_2G,