qcacld-3.0: Init thermal throttle level when psoc open

Initialize thermal throttle level to "full perf" when psoc
open.

Change-Id: If28eb7320e34cea6ee22e83218e84723a960d8f0
CRs-Fixed: 2866198
This commit is contained in:
Liangwei Dong
2021-01-29 18:08:12 +08:00
committato da snandini
parent 82f52b380e
commit 0a675201fd

Vedi File

@@ -536,6 +536,17 @@ static void ucfg_fwol_fetch_ra_filter(struct wlan_objmgr_psoc *psoc,
}
#endif
#ifdef FW_THERMAL_THROTTLE_SUPPORT
static void fwol_thermal_init(struct wlan_fwol_psoc_obj *fwol_obj)
{
fwol_obj->thermal_throttle.level = THERMAL_FULLPERF;
}
#else
static void fwol_thermal_init(struct wlan_fwol_psoc_obj *fwol_obj)
{
}
#endif
QDF_STATUS fwol_cfg_on_psoc_enable(struct wlan_objmgr_psoc *psoc)
{
QDF_STATUS status = QDF_STATUS_SUCCESS;
@@ -602,6 +613,7 @@ QDF_STATUS fwol_cfg_on_psoc_enable(struct wlan_objmgr_psoc *psoc)
fwol_cfg->enable_ilp = cfg_get(psoc, CFG_SET_ENABLE_ILP);
fwol_cfg->sap_sho = cfg_get(psoc, CFG_SAP_SHO_CONFIG);
fwol_cfg->disable_hw_assist = cfg_get(psoc, CFG_DISABLE_HW_ASSIST);
fwol_thermal_init(fwol_obj);
return status;
}