ソースを参照

qcacld-3.0: Add handling of MCC in 2 port policy dump

Currently if 2 frequencies are in SCC then, SCC is added in
policy manager current concurrency dump but in case frequencies
are MCC then hardware mode is considered instead of MCC.

Fix is to add MCC instead of hw mode if frequencies are on same
Mac but not same.

Change-Id: If0fc20f5ed6efae881fbb96b9d5b42dfd95027a3
CRs-Fixed: 3421278
Sheenam Monga 2 年 前
コミット
241487b08d

+ 12 - 1
components/cmn_services/policy_mgr/src/wlan_policy_mgr_core.c

@@ -1600,8 +1600,19 @@ void policy_mgr_dump_current_concurrency(struct wlan_objmgr_psoc *psoc)
 			psoc, cc_mode, len);
 		qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
 		if (pm_conc_connection_list[0].freq ==
-			pm_conc_connection_list[1].freq) {
+		    pm_conc_connection_list[1].freq) {
 			strlcat(cc_mode, " SCC", len);
+			/* In some platform 2.4 Ghz can lead to DBS,
+			 * so check for DBS for SCC/MCC case
+			 */
+			if (policy_mgr_is_current_hwmode_dbs(psoc))
+				strlcat(cc_mode, " (DBS)", len);
+		} else if (policy_mgr_2_freq_always_on_same_mac(psoc,
+			   pm_conc_connection_list[0].freq,
+			   pm_conc_connection_list[1].freq)) {
+			strlcat(cc_mode, " MCC", len);
+			if (policy_mgr_is_current_hwmode_dbs(psoc))
+				strlcat(cc_mode, " (DBS)", len);
 		} else if (policy_mgr_is_current_hwmode_dbs(psoc)) {
 			strlcat(cc_mode, " DBS", len);
 		} else if (policy_mgr_is_current_hwmode_sbs(psoc)) {