From 5a8f11a4741454c428c0a7a4fc4a0c4741b9b49d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 13:46:58 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_set_tm_level() Function sme_set_tm_level() is unused, so remove it. Change-Id: I5afd04a5ed5d4d0bd3438d95cc4f6c214ad4bc3d CRs-Fixed: 2371193 --- core/sme/inc/sme_api.h | 2 -- core/sme/src/common/sme_api.c | 54 ----------------------------------- 2 files changed, 56 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 4b29e21213f5b..bcc64a80a2ddf 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -704,8 +704,6 @@ QDF_STATUS sme_set_tx_power(mac_handle_t mac_handle, uint8_t sessionId, QDF_STATUS sme_set_custom_mac_addr(tSirMacAddr customMacAddr); QDF_STATUS sme_hide_ssid(mac_handle_t mac_handle, uint8_t sessionId, uint8_t ssidHidden); -QDF_STATUS sme_set_tm_level(mac_handle_t mac_handle, uint16_t newTMLevel, - uint16_t tmMode); QDF_STATUS sme_update_roam_scan_n_probes(mac_handle_t mac_handle, uint8_t sessionId, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index edc117ea89ee1..ac65105762d9b 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -5725,60 +5725,6 @@ QDF_STATUS sme_update_session_param(mac_handle_t mac_handle, uint8_t session_id, return status; } -/* - * sme_set_tm_level() - - * Set Thermal Mitigation Level to RIVA - * - * mac_handle - The handle returned by mac_open. - * newTMLevel - new Thermal Mitigation Level - * tmMode - Thermal Mitigation handle mode, default 0 - * Return QDF_STATUS - */ -QDF_STATUS sme_set_tm_level(mac_handle_t mac_handle, - uint16_t newTMLevel, - uint16_t tmMode) -{ - QDF_STATUS status = QDF_STATUS_SUCCESS; - QDF_STATUS qdf_status = QDF_STATUS_SUCCESS; - struct mac_context *mac = MAC_CONTEXT(mac_handle); - struct scheduler_msg message = {0}; - tAniSetTmLevelReq *setTmLevelReq = NULL; - - MTRACE(qdf_trace(QDF_MODULE_ID_SME, - TRACE_CODE_SME_RX_HDD_SET_TMLEVEL, NO_SESSION, 0)); - status = sme_acquire_global_lock(&mac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - setTmLevelReq = - (tAniSetTmLevelReq *) - qdf_mem_malloc(sizeof(tAniSetTmLevelReq)); - if (NULL == setTmLevelReq) { - sme_release_global_lock(&mac->sme); - return QDF_STATUS_E_NOMEM; - } - - setTmLevelReq->tmMode = tmMode; - setTmLevelReq->newTmLevel = newTMLevel; - - /* serialize the req through MC thread */ - message.bodyptr = setTmLevelReq; - message.type = WMA_SET_TM_LEVEL_REQ; - MTRACE(qdf_trace(QDF_MODULE_ID_SME, TRACE_CODE_SME_TX_WMA_MSG, - NO_SESSION, message.type)); - qdf_status = scheduler_post_message(QDF_MODULE_ID_SME, - QDF_MODULE_ID_WMA, - QDF_MODULE_ID_WMA, - &message); - if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { - QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR, - "%s: Post Set TM Level MSG fail", __func__); - qdf_mem_free(setTmLevelReq); - status = QDF_STATUS_E_FAILURE; - } - sme_release_global_lock(&mac->sme); - } - return status; -} - /* * sme_update_roam_scan_n_probes() - * Function to update roam scan N probes