diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 8b5046353c..82c8b51a09 100644 --- a/core/cds/src/cds_api.c +++ b/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"); diff --git a/core/wma/inc/wma_api.h b/core/wma/inc/wma_api.h index 763f241070..46eb6f5836 100644 --- a/core/wma/inc/wma_api.h +++ b/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); diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 233f4ec69e..f4f581b7a1 100644 --- a/core/wma/src/wma_main.c +++ b/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;