From 43ab6249f169ebae1d9c73afd4229e3ec8d432f7 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Tue, 3 Dec 2019 12:28:38 +0530 Subject: [PATCH] qcacld-3.0: Set freq present as false in sap_get_freq_list Currently if the first channel if seen in the normalize acs weight array is found, the driver does not set the freq present as false back, which leads to further disabling all frequencies for SAP which should not be the expectation. Fix is to set the freq present as false again for the next frequency. Change-Id: Iabeb40179a0ef02cb51441b1148eea79b82d0ebf CRs-Fixed: 2578551 --- core/sap/src/sap_fsm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 43f486d35ce2..f22ae640f27c 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -3419,6 +3419,7 @@ static QDF_STATUS sap_get_freq_list(struct sap_context *sap_ctx, if (freq_present_in_list && !normalize_factor) { sap_debug("chan_freq %d ecluded normalize weight 0", chan_freq); + freq_present_in_list = false; continue; } #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE