From dacb503d6f440f4a602be8e668c856982eb2f5a7 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Thu, 8 Feb 2018 15:23:24 -0800 Subject: [PATCH] qcacld-3.0: Skip chainmask programming if antenna sharing enabled Skip chainmask programming if antenna sharing enabled. Change-Id: If4c765ed35b249b8a08660557a20bec2c77579f7 CRs-Fixed: 2186904 --- core/hdd/src/wlan_hdd_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 2a21e4411e3e..fa6b5f414f89 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4143,6 +4143,11 @@ static int hdd_configure_chain_mask(struct hdd_adapter *adapter) return 0; } + if (hdd_ctx->lte_coex_ant_share) { + hdd_info("lte ant sharing enabled. skip chainmask programming"); + return 0; + } + if (hdd_ctx->config->txchainmask1x1) { ret_val = sme_cli_set_command(adapter->session_id, WMI_PDEV_PARAM_TX_CHAIN_MASK, @@ -4161,11 +4166,6 @@ static int hdd_configure_chain_mask(struct hdd_adapter *adapter) goto error; } - if (hdd_ctx->lte_coex_ant_share) { - hdd_info("lte ant sharing enabled. skip per band chain mask"); - return 0; - } - if (hdd_ctx->config->txchainmask1x1 || hdd_ctx->config->rxchainmask1x1) { hdd_info("band agnostic tx/rx chain mask set. skip per band chain mask");