Kaynağa Gözat

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
Subrat Dash 4 yıl önce
ebeveyn
işleme
cf2e868763
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      core/mac/src/pe/lim/lim_utils.c

+ 8 - 0
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);
 }