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);