diff --git a/init_deinit/dispatcher/inc/dispatcher_init_deinit.h b/init_deinit/dispatcher/inc/dispatcher_init_deinit.h index 6575ad61d730..c0a73e424ca4 100644 --- a/init_deinit/dispatcher/inc/dispatcher_init_deinit.h +++ b/init_deinit/dispatcher/inc/dispatcher_init_deinit.h @@ -61,6 +61,26 @@ QDF_STATUS dispatcher_init(void); */ QDF_STATUS dispatcher_deinit(void); +/** + * dispatcher_enable(): global (above psoc) level component start + * + * Prepare components to service requests. Must only be called after + * dispatcher_init(). + * + * Return: QDF_STATUS + */ +QDF_STATUS dispatcher_enable(void); + +/** + * dispatcher_disable(): global (above psoc) level component stop + * + * Stop components from servicing requests. Must be called before + * scheduler_deinit(). + * + * Return: QDF_STATUS + */ +QDF_STATUS dispatcher_disable(void); + /** * dispatcher_psoc_open(): API to trigger PSOC open for all new components * @psoc: psoc context diff --git a/init_deinit/dispatcher/src/dispatcher_init_deinit.c b/init_deinit/dispatcher/src/dispatcher_init_deinit.c index 68f929dceaaa..834b27d226b9 100644 --- a/init_deinit/dispatcher/src/dispatcher_init_deinit.c +++ b/init_deinit/dispatcher/src/dispatcher_init_deinit.c @@ -780,6 +780,18 @@ QDF_STATUS dispatcher_deinit(void) } EXPORT_SYMBOL(dispatcher_deinit); +QDF_STATUS dispatcher_enable(void) +{ + return QDF_STATUS_SUCCESS; +} +EXPORT_SYMBOL(dispatcher_enable); + +QDF_STATUS dispatcher_disable(void) +{ + return QDF_STATUS_SUCCESS; +} +EXPORT_SYMBOL(dispatcher_disable); + QDF_STATUS dispatcher_psoc_open(struct wlan_objmgr_psoc *psoc) { if (QDF_STATUS_SUCCESS != wlan_mgmt_txrx_psoc_open(psoc))