From 5f0b270f4bb25bd9a4a0495d0b9a1988751bb11e Mon Sep 17 00:00:00 2001 From: Vijay Raj Date: Wed, 6 Dec 2023 04:53:42 -0800 Subject: [PATCH] qcacld-3.0: Optimize CONNECTING connectivity log In the api wlan_connectivity_sta_info_event(), the CONNECTING connectivity log is printed after STA_INFO connectivity logs. But this behaviour is not expected during STA INFO Log after roaming as CONNECTING log should be printed only when connect request is received from the userspace. Modify the api wlan_connectivity_sta_info_event() and logging CONNECTING event from the api lim_process_mlm_join_cnf() in order to prevent connecting log during roaming. Change-Id: I91d2c14b109fb8a828ba99a021fe6b6e462516c8 CRs-Fixed: 3680502 --- .../cmn_services/logging/src/wlan_connectivity_logging.c | 3 +-- core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/cmn_services/logging/src/wlan_connectivity_logging.c b/components/cmn_services/logging/src/wlan_connectivity_logging.c index 1e1f1e029c..34d6b7c4e6 100644 --- a/components/cmn_services/logging/src/wlan_connectivity_logging.c +++ b/components/cmn_services/logging/src/wlan_connectivity_logging.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2021, The Linux Foundation. All rights reserved. - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2024 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 @@ -892,7 +892,6 @@ wlan_connectivity_sta_info_event(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id, } WLAN_HOST_DIAG_EVENT_REPORT(&wlan_diag_event, EVENT_WLAN_STA_INFO); - wlan_connectivity_connecting_event(vdev, NULL); out: wlan_objmgr_vdev_release_ref(vdev, WLAN_MLME_OBJMGR_ID); } diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c index a0ea25bae9..c0ad52e526 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 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 @@ -309,6 +309,7 @@ void lim_process_mlm_join_cnf(struct mac_context *mac_ctx, wlan_connectivity_sta_info_event(mac_ctx->psoc, session_entry->vdev_id, false); + wlan_connectivity_connecting_event(session_entry->vdev, NULL); session_entry->join_probe_cnt = 0; if (session_entry->limSmeState != eLIM_SME_WT_JOIN_STATE) {