Jelajahi Sumber

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
Ashish Kumar Dhanotiya 5 tahun lalu
induk
melakukan
6b3041aed2
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      core/hdd/src/wlan_hdd_sar_limits.h

+ 2 - 3
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