From cf2e86876336e93c92eb7c061bc3a003c13afff6 Mon Sep 17 00:00:00 2001 From: Subrat Dash Date: Tue, 7 Jul 2020 12:36:26 +0530 Subject: [PATCH] qcacld-3.0: Avoid resetting EDCA parameters to default values The EDCA parameters in SAP mode are reset to default values defined in EDCA config strings when the first station connects the BSS and again when the last station leaves the BSS. it overrides the EDCA parameters values configured from the hostapd. Add a check to avoid resetting EDCA parameters when SAP is not operating with ANI profile. Change-Id: Iecf21b4c35192e98ea9e96b50c0ba0d6d5382a40 CRs-Fixed: 2725446 --- core/mac/src/pe/lim/lim_utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index ead7fcd61290..c38e617683dd 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -1969,6 +1969,10 @@ lim_util_count_sta_add(struct mac_context *mac, if (mac->lim.gLimNumOfAniSTAs++ != 0) return; + if (mac->mlme_cfg->wmm_params.edca_profile != + WNI_CFG_EDCA_PROFILE_ANI) + return; + /* get here only if this is the first ANI peer in the BSS */ sch_edca_profile_update(mac, pe_session); } @@ -2001,6 +2005,10 @@ lim_util_count_sta_del(struct mac_context *mac, if (mac->lim.gLimNumOfAniSTAs != 0) return; + if (mac->mlme_cfg->wmm_params.edca_profile != + WNI_CFG_EDCA_PROFILE_ANI) + return; + /* get here only if this is the last ANI peer in the BSS */ sch_edca_profile_update(mac, pe_session); }