From bd027a00e898839dc09a8a89290787b20a7768f1 Mon Sep 17 00:00:00 2001 From: Harprit Chhabada Date: Tue, 30 Oct 2018 13:02:22 -0700 Subject: [PATCH] qcacld-3.0: Initialize the ACS cfg items in MLME Initialize the following ACS cfg items: 1.CFG_ACS_WITH_MORE_PARAM_NAME 2.CFG_AUTO_CHANNEL_SELECT_WEIGHT 3.CFG_USER_AUTO_CHANNEL_SELECTION 4.CFG_USER_ACS_DFS_LTE 5.CFG_EXTERNAL_ACS_POLICY Change-Id: I9500964076b29ba4f067ee25dffa019327cce901 CRs-Fixed: 2342046 --- components/mlme/core/src/wlan_mlme_main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/components/mlme/core/src/wlan_mlme_main.c b/components/mlme/core/src/wlan_mlme_main.c index b41e27a9733a..8e67ccfdb2cb 100644 --- a/components/mlme/core/src/wlan_mlme_main.c +++ b/components/mlme/core/src/wlan_mlme_main.c @@ -858,6 +858,21 @@ static void mlme_init_threshold_cfg(struct wlan_objmgr_psoc *psoc, threshold->frag_threshold = cfg_get(psoc, CFG_FRAG_THRESHOLD); } +static void mlme_init_acs_cfg(struct wlan_objmgr_psoc *psoc, + struct wlan_mlme_acs *acs) +{ + acs->is_acs_with_more_param = + cfg_get(psoc, CFG_ACS_WITH_MORE_PARAM); + acs->auto_channel_select_weight = + cfg_get(psoc, CFG_AUTO_CHANNEL_SELECT_WEIGHT); + acs->is_vendor_acs_support = + cfg_get(psoc, CFG_USER_AUTO_CHANNEL_SELECTION); + acs->is_acs_support_for_dfs_ltecoex = + cfg_get(psoc, CFG_USER_ACS_DFS_LTE); + acs->is_external_acs_policy = + cfg_get(psoc, CFG_EXTERNAL_ACS_POLICY); +} + static void mlme_init_product_details_cfg(struct wlan_mlme_product_details_cfg *product_details) @@ -1304,6 +1319,7 @@ QDF_STATUS mlme_cfg_on_psoc_enable(struct wlan_objmgr_psoc *psoc) mlme_init_feature_flag_in_cfg(psoc, &mlme_cfg->feature_flags); mlme_init_scoring_cfg(psoc, &mlme_cfg->scoring); mlme_init_threshold_cfg(psoc, &mlme_cfg->threshold); + mlme_init_acs_cfg(psoc, &mlme_cfg->acs); mlme_init_oce_cfg(psoc, &mlme_cfg->oce); mlme_init_wep_cfg(&mlme_cfg->wep_params); mlme_init_wps_params_cfg(psoc, &mlme_cfg->wps_params);