From 80e9e3b9d093d4a1656eaddf7e5a533199bbea60 Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Tue, 11 Jun 2019 13:01:00 -0700 Subject: [PATCH] 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 --- components/mlme/dispatcher/inc/cfg_mlme_sap.h | 2 +- core/wma/src/wma_main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/mlme/dispatcher/inc/cfg_mlme_sap.h b/components/mlme/dispatcher/inc/cfg_mlme_sap.h index 851a52b43879..51f590e5f7c1 100644 --- a/components/mlme/dispatcher/inc/cfg_mlme_sap.h +++ b/components/mlme/dispatcher/inc/cfg_mlme_sap.h @@ -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, \ diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index f702ce4e20bf..295a9946d346 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -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) {