From 615afca089c148a77b12ea647cd88f492b9ee06a Mon Sep 17 00:00:00 2001 From: Vijay Raj Date: Wed, 23 Apr 2025 00:23:10 -0700 Subject: [PATCH] qcacmn: Add support to ignore DCS FW event for low cycle count In the api wlan_dcs_wlan_interference_process(), the XPAN sap initiate multiple CSA when the rx clear cnt is above threshold. This frequent XPAN SAP CSA is not expected. Add support to check the cycle count to be lower than rx clear count value to prevent frequent initiation of CSA. Change-Id: I6a94239d1641dbfcd35eed7d2affafd043abbd92 CRs-Fixed: 4126633 --- umac/dcs/core/src/wlan_dcs.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/umac/dcs/core/src/wlan_dcs.c b/umac/dcs/core/src/wlan_dcs.c index 6ca3d920c6..54100e7ee6 100644 --- a/umac/dcs/core/src/wlan_dcs.c +++ b/umac/dcs/core/src/wlan_dcs.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. - * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -598,6 +598,14 @@ wlan_dcs_wlan_interference_process(struct wlan_objmgr_psoc *psoc, if (QDF_IS_STATUS_ERROR(status)) goto end; + if (cycle_count_delta < rxclr_delta) { + if (unlikely(dcs_host_params.dcs_debug >= DCS_DEBUG_CRITICAL)) + dcs_debug("cycle count %d is less than rxclr_delta %d, need to investigate!!", + cycle_count_delta, rxclr_delta); + + goto copy_stats; + } + if (unlikely(dcs_host_params.dcs_debug >= DCS_DEBUG_VERBOSE)) dcs_debug("rxclr_delta: %u, rxclr_ext_delta: %u, tx_frame_delta: %u, rx_frame_delta: %u, cycle_count_delta: %u, my_bss_rx_delta: %u",