Browse Source

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
Jeff Johnson 7 years ago
parent
commit
4f51934a73
3 changed files with 5 additions and 8 deletions
  1. 3 4
      core/hdd/src/wlan_hdd_cfg.c
  2. 1 2
      core/sme/inc/sme_api.h
  3. 1 2
      core/sme/src/common/sme_api.c

+ 3 - 4
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;

+ 1 - 2
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*/

+ 1 - 2
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);