From 25112131d057612d7ca4fdbbaa0d30f97a891f82 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Thu, 22 Sep 2022 16:25:50 +0530 Subject: [PATCH] qcacld-3.0: Do not clear channel stats after ACS completion As part of SAP ACS optimization, the last ACS scan's result can be reused in current ACS request if the last scan done was not greater then last_scan_ageout_time provided as part of do_acs command. So, do not clear channel stats after ACS completion if SAP ACS optimization feature is enabled. Change-Id: Idac6225f790d84ba90ebd740602d0c5d358ed2dc CRs-Fixed: 3297868 --- core/sap/src/sap_ch_select.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/sap/src/sap_ch_select.c b/core/sap/src/sap_ch_select.c index 7560337737..d073ddcb92 100644 --- a/core/sap/src/sap_ch_select.c +++ b/core/sap/src/sap_ch_select.c @@ -614,6 +614,7 @@ static struct channel_status *sap_get_channel_status return ucfg_mc_cp_stats_get_channel_status(p_mac->pdev, chan_freq); } +#ifndef WLAN_FEATURE_SAP_ACS_OPTIMIZE /** * sap_clear_channel_status() - clear chan info * @p_mac: Pointer to Global MAC structure @@ -627,6 +628,12 @@ static void sap_clear_channel_status(struct mac_context *p_mac) ucfg_mc_cp_stats_clear_channel_status(p_mac->pdev); } +#else +static void sap_clear_channel_status(struct mac_context *p_mac) +{ +} +#endif + /** * sap_weight_channel_noise_floor() - compute noise floor weight * @sap_ctx: sap context