Browse Source

qcacld-3.0: Optimize log prints

Remove redundant log prints in policy_mgr_dump_connection_status_info().

Change-Id: I9fb9b5fd6b5c8e1cc93b9adc6ec84fddd2bf90bc
CRs-Fixed: 3134762
Vinod Kumar Myadam 3 years ago
parent
commit
d24c25f0e4

+ 2 - 0
components/cmn_services/policy_mgr/src/wlan_policy_mgr_get_set_utils.c

@@ -5014,6 +5014,8 @@ void policy_mgr_dump_connection_status_info(struct wlan_objmgr_psoc *psoc)
 
 	qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
 	for (i = 0; i < MAX_NUMBER_OF_CONC_CONNECTIONS; i++) {
+		if (!pm_conc_connection_list[i].in_use)
+			continue;
 		policy_mgr_debug("%d: use:%d vdev:%d mode:%d mac:%d freq:%d orig chainmask:%d orig nss:%d bw:%d, ch_flags %0X",
 				 i, pm_conc_connection_list[i].in_use,
 				 pm_conc_connection_list[i].vdev_id,