From 0ddf3353fdd6ee8fd6625be164a7864e571f2ee6 Mon Sep 17 00:00:00 2001 From: suresh Date: Wed, 26 Aug 2020 10:27:10 +0530 Subject: [PATCH] qcacmn: Remove DA source code dependency Remove DA header file reference and other DA dependent code changes. Change-Id: I49804f753390b8952e45679b178162dd60bb43f6 --- .../core/src/wlan_cp_stats_obj_mgr_handler.c | 5 +---- .../core/src/wlan_cp_stats_obj_mgr_handler.h | 19 +------------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c index 50e442f26efb..e8809168eb75 100644 --- a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c +++ b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -56,9 +56,6 @@ wlan_cp_stats_psoc_obj_create_handler(struct wlan_objmgr_psoc *psoc, void *arg) cp_stats_err("Failed to init cp stats ctx, bad device type"); status = QDF_STATUS_E_INVAL; goto wlan_cp_stats_psoc_obj_create_handler_return; - } else if (WLAN_DEV_DA == dev_type) { - csc->cp_stats_ctx_init = wlan_cp_stats_ctx_init_da; - csc->cp_stats_ctx_deinit = wlan_cp_stats_ctx_deinit_da; } else if (WLAN_DEV_OL == dev_type) { csc->cp_stats_ctx_init = wlan_cp_stats_ctx_init_ol; csc->cp_stats_ctx_deinit = wlan_cp_stats_ctx_deinit_ol; diff --git a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h index 0f60f94b940e..105695443b09 100644 --- a/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h +++ b/umac/cp_stats/core/src/wlan_cp_stats_obj_mgr_handler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -34,11 +34,7 @@ #include #include -#ifdef QCA_SUPPORT_CP_STATS_DA -#include "wlan_cp_stats_da_api.h" -#else #include "wlan_cp_stats_defs.h" -#endif /** * wlan_cp_stats_psoc_obj_create_handler() - psoc create notification handler @@ -128,19 +124,6 @@ QDF_STATUS wlan_cp_stats_peer_obj_create_handler( QDF_STATUS wlan_cp_stats_peer_obj_destroy_handler( struct wlan_objmgr_peer *peer, void *data); -#ifndef QCA_SUPPORT_CP_STATS_DA -static inline -QDF_STATUS wlan_cp_stats_ctx_init_da(struct cp_stats_context *csc) -{ - return QDF_STATUS_SUCCESS; -} - -static inline -QDF_STATUS wlan_cp_stats_ctx_deinit_da(struct cp_stats_context *csc) -{ - return QDF_STATUS_SUCCESS; -} -#endif #endif /* QCA_SUPPORT_CP_STATS */ #endif /* __WLAN_CP_STATS_OBJ_MGR_HANDLER_H__ */