Browse Source

qcacld-3.0: Remove wma_stop() cds_ctx parameter

Currently wma_stop() 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: Iba40ac86e5916be3b8c2a62cf5483c9b7a242be5
CRs-Fixed: 2109254
Jeff Johnson 7 years ago
parent
commit
acc1cc7a4e
3 changed files with 4 additions and 5 deletions
  1. 2 2
      core/cds/src/cds_api.c
  2. 1 1
      core/wma/inc/wma_api.h
  3. 1 2
      core/wma/src/wma_main.c

+ 2 - 2
core/cds/src/cds_api.c

@@ -909,7 +909,7 @@ err_mac_stop:
 
 err_wma_stop:
 	qdf_event_reset(&(gp_cds_context->wmaCompleteEvent));
-	qdf_status = wma_stop(p_cds_context, HAL_STOP_TYPE_RF_KILL);
+	qdf_status = wma_stop(HAL_STOP_TYPE_RF_KILL);
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
 			  "%s: Failed to stop wma", __func__);
@@ -959,7 +959,7 @@ QDF_STATUS cds_disable(struct wlan_objmgr_psoc *psoc, v_CONTEXT_t cds_context)
 
 	dispatcher_psoc_disable(psoc);
 
-	qdf_status = wma_stop(cds_context, HAL_STOP_TYPE_RF_KILL);
+	qdf_status = wma_stop(HAL_STOP_TYPE_RF_KILL);
 
 	if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 		cds_err("Failed to stop wma");

+ 1 - 1
core/wma/inc/wma_api.h

@@ -102,7 +102,7 @@ QDF_STATUS wma_mc_process_handler(struct scheduler_msg *msg);
 
 QDF_STATUS wma_start(void);
 
-QDF_STATUS wma_stop(void *cds_context, uint8_t reason);
+QDF_STATUS wma_stop(uint8_t reason);
 
 QDF_STATUS wma_close(void *cds_context);
 

+ 1 - 2
core/wma/src/wma_main.c

@@ -3470,12 +3470,11 @@ end:
 /**
  * wma_stop() - wma stop function.
  *              cleanup timers and suspend target.
- * @cds_ctx: cds context
  * @reason: reason for wma_stop.
  *
  * Return: 0 on success, QDF Error on failure
  */
-QDF_STATUS wma_stop(void *cds_ctx, uint8_t reason)
+QDF_STATUS wma_stop(uint8_t reason)
 {
 	tp_wma_handle wma_handle;
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;