summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSourav Mohapatra <mohapatr@codeaurora.org>2019-07-30 15:59:01 +0530
committernshrivas <nshrivas@codeaurora.org>2019-08-05 03:03:33 -0700
commit89b341678f0f4a5a6fef81503c6cfc70110f79e4 (patch)
tree75b982e5e4cde39715cde7713014bb270f14efc0
parent2c6d7c432a1a1a7dc40b1d7590fa2613616fd70f (diff)
qcacld-3.0: Disable thermal mitigation via Kbuild
Currently, thermal mitigation is enabled by default. As this is a customer-specific feature, it is not needed in the mainline driver. Disable the feature. Change-Id: Icf91f6d4303d826ef13a4ceda35c4ecac23e8c3b CRs-Fixed: 2501077
-rw-r--r--Kbuild4
-rw-r--r--core/pld/src/pld_common.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Kbuild b/Kbuild
index d580fbc06f86..f3468f9206ec 100644
--- a/Kbuild
+++ b/Kbuild
@@ -297,8 +297,8 @@ endif
#Enable beacon reporting feature
CONFIG_WLAN_BEACON_REPORTING := y
-#Enable FW thermal mitigation feature
-CONFIG_WLAN_FW_THERMAL_MITIGATION := y
+#Enable/Disable FW thermal mitigation feature
+CONFIG_WLAN_FW_THERMAL_MITIGATION := n
# Feature flags which are not (currently) configurable via Kconfig
diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c
index 285578b33c1d..b683b9988367 100644
--- a/core/pld/src/pld_common.c
+++ b/core/pld/src/pld_common.c
@@ -1576,7 +1576,7 @@ void pld_block_shutdown(struct device *dev, bool status)
}
}
-#ifdef CONFIG_PLD_SNOC_ICNSS
+#if defined(CONFIG_PLD_SNOC_ICNSS) && defined(CONFIG_WLAN_FW_THERMAL_MITIGATION)
int pld_thermal_register(struct device *dev, int max_state)
{
return icnss_thermal_register(dev, max_state);