summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortinlin <tinlin@codeaurora.org>2018-08-28 13:51:03 +0800
committertinlin <tinlin@codeaurora.org>2018-09-10 11:25:45 +0800
commitdbdc4e0fc9161ed97e91e3f0cb553a181e7ed8b7 (patch)
tree87413ff58cfbf8c7a555000ac0540738fe27dc83
parentcc91fdf60c41f164a99ad0914c0ce49ed9401bbb (diff)
qcacld-2.0: Remove warning log when wlan resumes
In wlan_hdd_thermal_suspend, thermal is judged before sme_set_auto_shutdown_timer. But no judgement in wlan_hdd_thermal_resume. Add judgement in wlan_hdd_thermal_resume to remove warning log WMI_HOST_AUTO_SHUTDOWN_CFG_CMDID when wlan resumes. Change-Id: I163035eaa17d13e81a977aa75365ee21076f2070 CRs-Fixed: 2309847
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index c740528144e6..94a0dd12165d 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -30797,7 +30797,8 @@ static int wlan_hdd_thermal_resume(hdd_context_t *pHddCtx, bool thermal)
}
/* send auto shutdown timer val 1 to fw as resume */
- sme_set_auto_shutdown_timer(pHddCtx->hHal, 1);
+ if (thermal)
+ sme_set_auto_shutdown_timer(pHddCtx->hHal, 1);
return 0;
}