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