1 /* 2 * Copyright (c) 2019, The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 #ifndef _WMI_UNIFIED_CFR_API_H_ 18 #define _WMI_UNIFIED_CFR_API_H_ 19 20 #include "wmi_unified_param.h" 21 #include "wmi_unified_cfr_param.h" 22 23 #ifdef WLAN_CFR_ENABLE 24 /** 25 * wmi_unified_send_peer_cfr_capture_cmd() - WMI function to start CFR capture 26 * for a peer 27 * @wmi_handle: WMI handle 28 * @param: configuration params for capture 29 * 30 * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. 31 */ 32 QDF_STATUS 33 wmi_unified_send_peer_cfr_capture_cmd(wmi_unified_t wmi_handle, 34 struct peer_cfr_params *param); 35 /** 36 * wmi_extract_cfr_peer_tx_event_param() - WMI function to extract cfr tx event 37 * for a peer 38 * @wmi_handle: WMI handle 39 * @evt_buf: Buffer holding event data 40 * @peer_tx_event: pointer to hold tx event data 41 * 42 * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. 43 */ 44 QDF_STATUS 45 wmi_extract_cfr_peer_tx_event_param(wmi_unified_t wmi_handle, void *evt_buf, 46 wmi_cfr_peer_tx_event_param *peer_tx_event); 47 48 #ifdef WLAN_ENH_CFR_ENABLE 49 /** 50 * wmi_unified_send_cfr_rcc_cmd() - WMI function to send CFR RCC param 51 * @wmi_handle: WMI handle 52 * @cfg: pointer to RCC param 53 * 54 * Return: QDF_STATUS_SUCCESS if success, else returns proper error code. 55 */ 56 QDF_STATUS wmi_unified_send_cfr_rcc_cmd(wmi_unified_t wmi_handle, 57 struct cfr_rcc_param *cfg); 58 #endif 59 #endif /* WLAN_CFR_ENABLE */ 60 #endif /* _WMI_UNIFIED_CFR_API_H_ */ 61