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
diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c
index 33bd379..6730458 100644
--- a/core/hdd/src/wlan_hdd_cfg.c
+++ b/core/hdd/src/wlan_hdd_cfg.c
@@ -6740,12 +6740,11 @@
*/
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 18b4014..69ba4d0 100644
--- a/core/sme/inc/sme_api.h
+++ b/core/sme/inc/sme_api.h
@@ -730,8 +730,7 @@
* 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 a6249e6..79a8b17 100644
--- a/core/sme/src/common/sme_api.c
+++ b/core/sme/src/common/sme_api.c
@@ -11037,8 +11037,7 @@
* 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);