From 1185461403faeea472913175afae0502015ae447 Mon Sep 17 00:00:00 2001 From: Balaji Pothunoori Date: Mon, 17 Jan 2022 17:49:03 +0530 Subject: [PATCH] qcacld-3.0: update number of thermal conf param for thermal throttle config Currently firmware is crashing due to levelconf structure received NULL from host. Hence initialize num_thermal_conf param to fill levelconf structure part of WMI_THERM_THROT_SET_CONF_CMDID. Change-Id: Ifcfb49253222fff6656327d9be3977a707c18af4 CRs-Fixed: 3064400 --- core/wma/src/wma_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/wma/src/wma_data.c b/core/wma/src/wma_data.c index 92cb5beec041..dd80689af756 100644 --- a/core/wma/src/wma_data.c +++ b/core/wma/src/wma_data.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -1721,6 +1722,7 @@ static QDF_STATUS wma_update_thermal_mitigation_to_fw(tp_wma_handle wma, therm_data.levelconf[0].dcoffpercent = wma->thermal_mgmt_info.throttle_duty_cycle_tbl[thermal_level]; therm_data.levelconf[0].priority = 0; + therm_data.num_thermal_conf = 1; return wmi_unified_thermal_mitigation_param_cmd_send(wma->wmi_handle, &therm_data);