mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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
This commit is contained in:
parent
aac91c68bf
commit
1185461403
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue