From c19030140d9a33a61334da5b6a65f37188eb7718 Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Tue, 5 Aug 2014 13:40:28 +0530 Subject: qcacld: Simulate thermal mitigation level in host Do not set actual thermal level to FW in setTmLevel command to simulate thermal mitigation level in host. setTmLevel command will set thermal level in host so that host behaves as if temp is increased and starts throttling data as per level set by user. Change-Id: I4dcecfef3071cd7bffc81371c981daa47cea6635 CRs-Fixed: 704546 --- CORE/SERVICES/WMA/wma.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 088dc7d716f5..82b41fe2e1e6 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -19483,7 +19483,6 @@ VOS_STATUS wma_process_init_thermal_info(tp_wma_handle wma, VOS_STATUS wma_process_set_thermal_level(tp_wma_handle wma, u_int8_t *pThermalLevel) { - t_thermal_cmd_params thermal_params; u_int8_t thermal_level; ol_txrx_pdev_handle curr_pdev; @@ -19501,7 +19500,7 @@ VOS_STATUS wma_process_set_thermal_level(tp_wma_handle wma, return VOS_STATUS_E_FAILURE; } - WMA_LOGD("TM set level %d", thermal_level); + WMA_LOGE("TM set level %d", thermal_level); /* Check if thermal mitigation is enabled */ if (!wma->thermal_mgmt_info.thermalMgmtEnabled) { @@ -19524,20 +19523,6 @@ VOS_STATUS wma_process_set_thermal_level(tp_wma_handle wma, ol_tx_throttle_set_level(curr_pdev, thermal_level); - /*set the thermal level in the firmware*/ - /* Get the temperature thresholds to set in firmware */ - thermal_params.minTemp = - wma->thermal_mgmt_info.thermalLevels[thermal_level].minTempThreshold; - thermal_params.maxTemp = - wma->thermal_mgmt_info.thermalLevels[thermal_level].maxTempThreshold; - thermal_params.thermalEnable = - wma->thermal_mgmt_info.thermalMgmtEnabled; - - if (VOS_STATUS_SUCCESS != wma_set_thermal_mgmt(wma, thermal_params)) { - WMA_LOGE("Could not send thermal mgmt command to the firmware!"); - return VOS_STATUS_E_FAILURE; - } - return VOS_STATUS_SUCCESS; } -- cgit v1.2.3