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
This commit is contained in:
Vijay Raj
2025-04-23 00:23:10 -07:00
committed by Ravindra Konda
parent 1fa74619bf
commit 615afca089

View File

@@ -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",