diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index e358d6556a3d..bbf6ad8bee7b 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4130,6 +4130,13 @@ static int hdd_configure_chain_mask(struct hdd_adapter *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->session_id, WMI_PDEV_PARAM_TX_CHAIN_MASK, @@ -4159,11 +4166,6 @@ static int hdd_configure_chain_mask(struct hdd_adapter *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->session_id, WMI_PDEV_PARAM_TX_CHAIN_MASK_2G,