소스 검색

qcacmn: Print psoc id along with vdev id

As part of VDEV SM history only vdev id is logged.
In multi psoc scenario it's difficult to differentiate vdevs across
psoc as vdevs share same id across psoc.

Hence add change to log psoc id along with vdev id.
CM-PS_0-VD_1: Connection SM PSOC:1 VDEV:2

Change-Id: I83f6b69e1ea308032ad8a58e4c81b74b76a277d3
CRs-Fixed: 3364875
Santosh Anbu 2 년 전
부모
커밋
cec48e1067
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      umac/mlme/connection_mgr/core/src/wlan_cm_sm.c

+ 3 - 2
umac/mlme/connection_mgr/core/src/wlan_cm_sm.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2012-2015,2020-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. 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 above
@@ -1167,7 +1167,8 @@ QDF_STATUS cm_sm_create(struct cnx_mgr *cm_ctx)
 	struct wlan_sm *sm;
 	uint8_t name[WLAN_SM_ENGINE_MAX_NAME];
 
-	qdf_scnprintf(name, sizeof(name), "CM-VDEV-%d",
+	qdf_scnprintf(name, sizeof(name), "CM-PS_%d-VD_%d",
+		      wlan_psoc_get_id(wlan_vdev_get_psoc(cm_ctx->vdev)),
 		      wlan_vdev_get_id(cm_ctx->vdev));
 	sm = wlan_sm_create(name, cm_ctx,
 			    WLAN_CM_S_INIT,