qcacld-3.0: Set the max_station config correctly for SAP

Set the max_station config correctly at wma_open instead of using
the default value.

Change-Id: I63cd05462351359fbdcaae03dbdff940817b9bde
CRs-Fixed: 2468829
This commit is contained in:
Tushnim Bhattacharyya
2019-06-11 13:01:00 -07:00
committed by nshrivas
parent d3fa2d6b64
commit 80e9e3b9d0
2 changed files with 3 additions and 1 deletions

View File

@@ -66,7 +66,7 @@
"CFG_11G_ONLY_POLICY")
#define CFG_ASSOC_STA_LIMIT CFG_UINT( \
"cfg_beacon_interval", \
"cfg_assoc_sta_limit", \
1, \
32, \
10, \

View File

@@ -3313,6 +3313,8 @@ QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc,
cds_cfg->max_station = wma_init_max_no_of_peers(wma_handle,
cds_cfg->max_station);
wlan_mlme_set_assoc_sta_limit(psoc, cds_cfg->max_station);
/* initialize default target config */
wlan_res_cfg = target_psoc_get_wlan_res_cfg(tgt_psoc_info);
if (!wlan_res_cfg) {