From ccb24082442fe683aefa940f4951fe37d78e6cca Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 17 Dec 2018 19:45:23 -0800 Subject: [PATCH] qcacld-3.0: Remove sme_cfg_set_str() Change Ib943f9de70a78ba5d5e87d81c76b20341893f8e9 ("qcacld-3.0: Enable MAC provisioning from ini") removed the last client of sme_cfg_set_str(). Since the CFG is being phased out there should not be any new clients for this function, so remove it. Change-Id: Ie97bb639423ceb0be41dab686d85dae46e4acff7 CRs-Fixed: 2370882 --- core/sme/inc/sme_api.h | 2 -- core/sme/src/common/sme_api.c | 23 ----------------------- 2 files changed, 25 deletions(-) diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 3250379721a5..ac4368a5f49c 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -607,8 +607,6 @@ QDF_STATUS sme_set_plm_request(mac_handle_t mac_handle, tpSirPlmReq pPlm); #endif /*FEATURE_WLAN_ESE */ QDF_STATUS sme_cfg_set_int(mac_handle_t mac_handle, uint16_t cfg_id, uint32_t value); -QDF_STATUS sme_cfg_set_str(mac_handle_t mac_handle, uint16_t cfg_id, - uint8_t *str, uint32_t length); QDF_STATUS sme_cfg_get_int(mac_handle_t mac_handle, uint16_t cfg_id, uint32_t *cfg_value); QDF_STATUS sme_cfg_get_str(mac_handle_t mac_handle, uint16_t cfg_id, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index fa92c3b0a1d2..fef28741c128 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -3710,29 +3710,6 @@ QDF_STATUS sme_cfg_set_int(mac_handle_t mac_handle, uint16_t cfg_id, return status; } -/** - * sme_cfg_set_str() - Sets the cfg parameter string. - * @mac_handle: Opaque handle to the global MAC context. - * @cfg_id: Configuration parameter ID. - * @str: Pointer to the string buffer. - * @length: Length of the string. - * - * This function sets the string value in cfg parameter. - * - * Return: QDF_STATUS - */ -QDF_STATUS sme_cfg_set_str(mac_handle_t mac_handle, uint16_t cfg_id, - uint8_t *str, uint32_t length) -{ - struct mac_context *pmac = MAC_CONTEXT(mac_handle); - QDF_STATUS status = QDF_STATUS_SUCCESS; - - if (QDF_STATUS_SUCCESS != cfg_set_str(pmac, cfg_id, str, length)) - status = QDF_STATUS_E_FAILURE; - - return status; -} - /** * sme_cfg_get_int() - Gets the cfg parameter value. * @mac_handle: Opaque handle to the global MAC context.