diff --git a/init_deinit/dispatcher/src/dispatcher_init_deinit.c b/init_deinit/dispatcher/src/dispatcher_init_deinit.c index 85b107fc3f..bbf7e52dc0 100644 --- a/init_deinit/dispatcher/src/dispatcher_init_deinit.c +++ b/init_deinit/dispatcher/src/dispatcher_init_deinit.c @@ -80,11 +80,7 @@ #ifdef DCS_INTERFERENCE_DETECTION #include #endif - -#ifdef WLAN_FEATURE_INTERFACE_MGR #include -#endif - #include /** @@ -868,7 +864,6 @@ static QDF_STATUS fd_psoc_disable(struct wlan_objmgr_psoc *psoc) } #endif /* WLAN_SUPPORT_FILS */ -#ifdef WLAN_FEATURE_INTERFACE_MGR static QDF_STATUS dispatcher_if_mgr_init(void) { return wlan_if_mgr_init(); @@ -878,17 +873,6 @@ static QDF_STATUS dispatcher_if_mgr_deinit(void) { return wlan_if_mgr_deinit(); } -#else -static QDF_STATUS dispatcher_if_mgr_init(void) -{ - return QDF_STATUS_SUCCESS; -} - -static QDF_STATUS dispatcher_if_mgr_deinit(void) -{ - return QDF_STATUS_SUCCESS; -} -#endif #ifdef FEATURE_COEX static QDF_STATUS dispatcher_coex_init(void) diff --git a/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_api.h b/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_api.h index 9224423b59..2c314cc467 100644 --- a/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_api.h +++ b/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_api.h @@ -21,6 +21,8 @@ #ifndef _WLAN_IF_MGR_API_H_ #define _WLAN_IF_MGR_API_H_ +#ifdef WLAN_FEATURE_INTERFACE_MGR + #include "wlan_objmgr_psoc_obj.h" #include "wlan_objmgr_vdev_obj.h" #include "wlan_if_mgr_public_struct.h" @@ -36,5 +38,13 @@ QDF_STATUS if_mgr_deliver_event(struct wlan_objmgr_vdev *vdev, enum wlan_if_mgr_evt event, struct if_mgr_event_data *event_data); +#else +QDF_STATUS if_mgr_deliver_event(struct wlan_objmgr_vdev *vdev, + enum wlan_if_mgr_evt event, + struct if_mgr_event_data *event_data) +{ + return QDF_STATUS_SUCCESS; +} +#endif #endif diff --git a/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_main.h b/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_main.h index 2800c2f688..ea1dd38769 100644 --- a/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_main.h +++ b/umac/cmn_services/interface_mgr/inc/wlan_if_mgr_main.h @@ -21,6 +21,8 @@ #ifndef _WLAN_IF_MGR_MAIN_API_H_ #define _WLAN_IF_MGR_MAIN_API_H_ +#ifdef WLAN_FEATURE_INTERFACE_MGR + #include #include #include @@ -89,7 +91,6 @@ QDF_STATUS wlan_if_mgr_deinit(void); */ QDF_STATUS wlan_if_mgr_psoc_created_notification(struct wlan_objmgr_psoc *psoc, void *arg_list); - /** * wlan_scan_psoc_deleted_notification() - scan psoc delete handler * @psoc: psoc object @@ -99,5 +100,15 @@ QDF_STATUS wlan_if_mgr_psoc_created_notification(struct wlan_objmgr_psoc *psoc, */ QDF_STATUS wlan_if_mgr_psoc_destroyed_notification(struct wlan_objmgr_psoc *psoc, void *arg_list); +#else +inline QDF_STATUS wlan_if_mgr_init(void) +{ + return QDF_STATUS_SUCCESS; +} +QDF_STATUS wlan_if_mgr_deinit(void) +{ + return QDF_STATUS_SUCCESS; +} +#endif #endif