瀏覽代碼

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 年之前
父節點
當前提交
cf2e868763
共有 1 個文件被更改,包括 8 次插入0 次删除
  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);
 }