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.h 21 * 22 * This header file maintain API declaration required for northbound interaction 23 */ 24 25 #ifndef __WLAN_CP_STATS_UCFG_API_H__ 26 #define __WLAN_CP_STATS_UCFG_API_H__ 27 28 #ifdef QCA_SUPPORT_CP_STATS 29 #include <wlan_cp_stats_utils_api.h> 30 #include "../../core/src/wlan_cp_stats_defs.h" 31 #include "../../core/src/wlan_cp_stats_cmn_api_i.h" 32 33 /** 34 * @ucfg_infra_cp_stats_register_resp_cb() - Register the response callback 35 * and cookie in the psoc mc_stats object 36 * @psoc: pointer to psoc object 37 * @req: pointer to request parameter structure 38 * 39 * Return: QDF_STATUS_SUCCESS on Success, other QDF_STATUS error codes on 40 * failure 41 */ 42 QDF_STATUS 43 ucfg_infra_cp_stats_register_resp_cb(struct wlan_objmgr_psoc *psoc, 44 struct infra_cp_stats_cmd_info *req); 45 46 /** 47 * @ucfg_send_infra_cp_stats_request() - send a infra cp stats command 48 * @vdev: pointer to vdev object 49 * @req: pointer to request parameter structure 50 * 51 * Return: QDF_STATUS_SUCCESS on Success, other QDF_STATUS error codes 52 * on failure 53 */ 54 QDF_STATUS 55 ucfg_send_infra_cp_stats_request(struct wlan_objmgr_vdev *vdev, 56 struct infra_cp_stats_cmd_info *req); 57 #endif /* QCA_SUPPORT_CP_STATS */ 58 #endif /* __WLAN_CP_STATS_UCFG_API_H__ */ 59