1 /* 2 * Copyright (c) 2018, 2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * DOC: wlan_cp_stats_ucfg_api.c 22 * 23 * This file provide API definitions required for northbound interaction 24 */ 25 26 #include <wlan_cp_stats_utils_api.h> 27 #include <wlan_cp_stats_ucfg_api.h> 28 #include "../../core/src/wlan_cp_stats_obj_mgr_handler.h" 29 30 #ifdef WLAN_SUPPORT_INFRA_CTRL_PATH_STATS 31 QDF_STATUS 32 ucfg_infra_cp_stats_register_resp_cb(struct wlan_objmgr_psoc *psoc, 33 struct infra_cp_stats_cmd_info *req) 34 { 35 return wlan_cp_stats_infra_cp_register_resp_cb(psoc, req); 36 } 37 38 QDF_STATUS 39 ucfg_send_infra_cp_stats_request(struct wlan_objmgr_vdev *vdev, 40 struct infra_cp_stats_cmd_info *req) 41 { 42 return wlan_cp_stats_send_infra_cp_req(wlan_vdev_get_psoc(vdev), req); 43 } 44 #endif /* WLAN_SUPPORT_INFRA_CTRL_PATH_STATS */ 45 46 #if defined(WLAN_SUPPORT_TWT) && defined (WLAN_TWT_CONV_SUPPORTED) 47 int ucfg_cp_stats_twt_get_peer_session_params( 48 struct wlan_objmgr_psoc *psoc_obj, 49 struct twt_session_stats_info *params) 50 { 51 return wlan_cp_stats_twt_get_peer_session_params(psoc_obj, params); 52 } 53 #endif 54