From 4f51934a739e7b29d14e4a2bc1b86ea641d33750 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 13 Sep 2017 14:27:17 -0700 Subject: [PATCH] qcacld-3.0: Remove sme_set_idle_powersave_config() cds_ctx param Currently sme_set_idle_powersave_config() takes a cds_ctx parameter. At one time this was needed for the call to cds_get_context(), but that is no longer the case, so remove this unused parameter. Change-Id: Iacef39eded8d87a22a30fe62b0305f93e604dc4c CRs-Fixed: 2109431 --- core/hdd/src/wlan_hdd_cfg.c | 7 +++---- core/sme/inc/sme_api.h | 3 +-- core/sme/src/common/sme_api.c | 3 +-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 33bd37960747..6730458a4c98 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -6740,12 +6740,11 @@ eCsrPhyMode hdd_cfg_xlate_to_csr_phy_mode(enum hdd_dot11_mode dot11Mode) */ QDF_STATUS hdd_set_idle_ps_config(struct hdd_context *hdd_ctx, uint32_t val) { - QDF_STATUS status = QDF_STATUS_SUCCESS; + QDF_STATUS status; - hdd_debug("hdd_set_idle_ps_config: Enter Val %d", val); + hdd_debug("Enter Val %d", val); - status = sme_set_idle_powersave_config(hdd_ctx->pcds_context, - hdd_ctx->hHal, val); + status = sme_set_idle_powersave_config(hdd_ctx->hHal, val); if (QDF_STATUS_SUCCESS != status) hdd_err("Fail to Set Idle PS Config val %d", val); return status; diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 18b401495bb8..69ba4d04a2db 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -730,8 +730,7 @@ QDF_STATUS sme_send_cesium_enable_ind(tHalHandle hHal, uint32_t sessionId); * This should be called only if powersave offload * is enabled */ -QDF_STATUS sme_set_idle_powersave_config(void *cds_context, - tHalHandle hHal, uint32_t value); +QDF_STATUS sme_set_idle_powersave_config(tHalHandle hHal, uint32_t value); QDF_STATUS sme_notify_modem_power_state(tHalHandle hHal, uint32_t value); /*SME API to convert convert the ini value to the ENUM used in csr and MAC*/ diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index a6249e622da0..79a8b171c365 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -11037,8 +11037,7 @@ QDF_STATUS sme_set_ht2040_mode(tHalHandle hHal, uint8_t sessionId, * This should be called only if powersave offload * is enabled */ -QDF_STATUS sme_set_idle_powersave_config(void *cds_context, - tHalHandle hHal, uint32_t value) +QDF_STATUS sme_set_idle_powersave_config(tHalHandle hHal, uint32_t value) { void *wmaContext = cds_get_context(QDF_MODULE_ID_WMA); tpAniSirGlobal pMac = PMAC_STRUCT(hHal);