From d6d37c5bf8f161b8d894e3a9f8f518c083d9aab1 Mon Sep 17 00:00:00 2001 From: sheenam monga Date: Wed, 30 Dec 2020 12:16:24 +0530 Subject: [PATCH] qcacld-3.0: Print correct concurrency support Currently host checks mac number to indicate MCC or DBS which may not be correct. Host may print DBS in case of MCC. Check DBS support and print concurrency based on hw mode if hw mode is dbs capable then print DBS else MCC. Change-Id: I1578e6a7a6b73b5b6c409653b4dc276954f51c3d CRs-Fixed: 2845634 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c index 8626cf07387c..450045d100a7 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -1268,11 +1268,11 @@ void policy_mgr_dump_current_concurrency(struct wlan_objmgr_psoc *psoc) if (pm_conc_connection_list[0].freq == pm_conc_connection_list[1].freq) { strlcat(cc_mode, " SCC", sizeof(cc_mode)); - } else if (pm_conc_connection_list[0].mac == - pm_conc_connection_list[1].mac) { - strlcat(cc_mode, " MCC", sizeof(cc_mode)); - } else + } else if (policy_mgr_is_dbs_enable(psoc)) { strlcat(cc_mode, " DBS", sizeof(cc_mode)); + } else { + strlcat(cc_mode, " MCC", sizeof(cc_mode)); + } qdf_mutex_release(&pm_ctx->qdf_conc_list_lock); policy_mgr_debug("%s", cc_mode); break;