浏览代码

qcacld-3.0: initialize pdev id after ssr for thermal throttle reconfig

Currently pdev_id is not initialized after ssr for thermal throttle
reconfig, Where host is sending vdev id as 64 which is leading to
firmware crash.
Hence initialize pdev_id to 0.

Change-Id: Ic614a382acb4f598c52948bcca1cd24f9754ad94
CRs-Fixed: 3041238
Balaji Pothunoori 3 年之前
父节点
当前提交
20ffee4c38
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/hdd/src/wlan_hdd_thermal.c

+ 2 - 1
core/hdd/src/wlan_hdd_thermal.c

@@ -595,7 +595,7 @@ QDF_STATUS hdd_restore_thermal_mitigation_config(struct hdd_context *hdd_ctx)
 	uint32_t prio = 0, target_temp = 0;
 	struct wlan_fwol_thermal_temp thermal_temp = {0};
 	QDF_STATUS status;
-	struct thermal_mitigation_params therm_cfg_params;
+	struct thermal_mitigation_params therm_cfg_params = {0};
 
 	status = ucfg_fwol_get_thermal_temp(hdd_ctx->psoc, &thermal_temp);
 	if (QDF_IS_STATUS_ERROR(status)) {
@@ -617,6 +617,7 @@ QDF_STATUS hdd_restore_thermal_mitigation_config(struct hdd_context *hdd_ctx)
 	therm_cfg_params.num_thermal_conf = 1;
 	therm_cfg_params.client_id = THERMAL_MONITOR_APPS;
 	therm_cfg_params.priority = 0;
+
 	hdd_debug("dc %d dc_off_per %d enable %d", dc, dc_off_percent, enable);
 
 	status = sme_set_thermal_throttle_cfg(hdd_ctx->mac_handle,