소스 검색

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
sheenam monga 4 년 전
부모
커밋
e32c548285
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

+ 5 - 5
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;