From 9916dca12c07201903ee9447c379da54e4eba1f9 Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Fri, 8 Jun 2018 10:06:39 +0530 Subject: [PATCH] qcacld-3.0: Update maxNumberOfPeers in sme database from ini The value that is received from the ini for the max number of peers supported for SAP is not being updated to the sme database. Update the ini param into the sme database Change-Id: I319d825e8b1f643b04b5521577786f8a3ed20e13 CRs-Fixed: 2249919 --- core/hdd/src/wlan_hdd_cfg.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 8d57cf0c51..f85c169a9d 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -8337,6 +8337,13 @@ bool hdd_update_config_cfg(struct hdd_context *hdd_ctx) hdd_err("Couldn't pass on WNI_CFG_RATE_FOR_TX_MGMT_5G to CCM"); } + if (sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_ASSOC_STA_LIMIT, + config->maxNumberOfPeers) == + QDF_STATUS_E_FAILURE) { + status = false; + hdd_err("Couldn't pass on WNI_CFG_ASSOC_STA_LIMIT to CFG"); + } + return status; }