From eff70d2442139552bc29ea30f0071bc9dfb5351c Mon Sep 17 00:00:00 2001 From: Manjeet Singh Date: Wed, 8 Mar 2017 18:14:18 +0530 Subject: qcacld-3.0: Correct sme_set_5g_band_pref definition sme_set_5g_band_pref is declared inside FEATURE_WLAN_ESE feature flag by mistake which can cause a symbol undefined error if FEATURE_WLAN_ESE is not declared. Move sme_set_5g_band_pref outside of conditional block FEATURE_WLAN_ESE. Change-Id: I80b045100b068d08873b136fdf676e99e36a57cd CRs-Fixed: 2016629 --- core/sme/src/common/sme_api.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 73ff75d5ab78..b9cf1f78a710 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -17346,9 +17346,9 @@ bool sme_roam_is_ese_assoc(tCsrRoamInfo *roam_info) { return roam_info->isESEAssoc; } - +#endif /** - * sme_set_band_specific_pref(): If 5G preference is enabled,set boost/drop + * sme_set_5g_band_pref(): If 5G preference is enabled,set boost/drop * params from ini. * @hal_handle: Handle returned by mac_open * @5g_pref_params: pref params from ini. @@ -17390,7 +17390,6 @@ void sme_set_5g_band_pref(tHalHandle hal_handle, "Unable to acquire global sme lock"); } -#endif bool sme_neighbor_roam_is11r_assoc(tHalHandle hal_ctx, uint8_t session_id) -- cgit v1.2.3