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
This commit is contained in:
Santosh Anbu
2023-01-18 12:15:59 +05:30
committed by Madan Koyyalamudi
parent 9bc8b332c4
commit cec48e1067

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2012-2015,2020-2021 The Linux Foundation. All rights reserved. * 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 * Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * 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; struct wlan_sm *sm;
uint8_t name[WLAN_SM_ENGINE_MAX_NAME]; 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)); wlan_vdev_get_id(cm_ctx->vdev));
sm = wlan_sm_create(name, cm_ctx, sm = wlan_sm_create(name, cm_ctx,
WLAN_CM_S_INIT, WLAN_CM_S_INIT,