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
2020-07-07 12:36:26 +05:30
提交者 snandini
父节点 f16ee17015
当前提交 cf2e868763

查看文件

@@ -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);
}