From 6b3041aed26d8911f0be244ec2aa3ec5e6b35d2e Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 11 Feb 2020 12:30:14 +0530 Subject: [PATCH] qcacld-3.0: Fix compilation issue in SAR limits file There are compilation issues if feature FEATURE_SAR_LIMITS is disabled. Fix compilation issues relaterd to feature FEATURE_SAR_LIMITS. Change-Id: Ifdb7c14ea3e973bc63560eb78edd084a53e28974 CRs-Fixed: 2619492 --- core/hdd/src/wlan_hdd_sar_limits.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_sar_limits.h b/core/hdd/src/wlan_hdd_sar_limits.h index d8c70b574c02..40180047e614 100644 --- a/core/hdd/src/wlan_hdd_sar_limits.h +++ b/core/hdd/src/wlan_hdd_sar_limits.h @@ -25,9 +25,7 @@ * WLAN Host Device Driver SAR limits API specification */ -#ifdef FEATURE_SAR_LIMITS - -#ifdef SAR_SAFETY_FEATURE +#if defined(FEATURE_SAR_LIMITS) && defined(SAR_SAFETY_FEATURE) /** * wlan_hdd_sar_unsolicited_timer_start() - Start SAR unsolicited timer * @hdd_ctx: Pointer to HDD context @@ -148,6 +146,7 @@ static inline void hdd_configure_sar_resume_index(struct hdd_context *hdd_ctx) #endif +#ifdef FEATURE_SAR_LIMITS /** * wlan_hdd_cfg80211_get_sar_power_limits() - Get SAR power limits * @wiphy: Pointer to wireless phy