Adwait Nayak | e2ee56e | 2019-10-14 16:41:14 +0530 | [diff] [blame] | 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 | #include "wmi_unified_priv.h" |
| 18 | |
| 19 | #ifdef WLAN_CFR_ENABLE |
| 20 | |
| 21 | QDF_STATUS wmi_unified_send_peer_cfr_capture_cmd(wmi_unified_t wmi_handle, |
| 22 | struct peer_cfr_params *param) |
| 23 | { |
| 24 | if (wmi_handle->ops->send_peer_cfr_capture_cmd) |
| 25 | return wmi_handle->ops->send_peer_cfr_capture_cmd(wmi_handle, |
| 26 | param); |
| 27 | |
| 28 | return QDF_STATUS_E_FAILURE; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * wmi_extract_cfr_peer_tx_event_param() - extract tx event params from event |
| 33 | */ |
| 34 | QDF_STATUS |
| 35 | wmi_extract_cfr_peer_tx_event_param(wmi_unified_t wmi_handle, void *evt_buf, |
| 36 | wmi_cfr_peer_tx_event_param *peer_tx_event) |
| 37 | { |
| 38 | if (wmi_handle->ops->extract_cfr_peer_tx_event_param) |
| 39 | return wmi_handle->ops->extract_cfr_peer_tx_event_param( |
| 40 | wmi_handle, |
| 41 | evt_buf, |
| 42 | peer_tx_event); |
| 43 | return QDF_STATUS_E_FAILURE; |
| 44 | } |
| 45 | |
| 46 | #ifdef WLAN_ENH_CFR_ENABLE |
| 47 | QDF_STATUS wmi_unified_send_cfr_rcc_cmd(wmi_unified_t wmi_handle, |
| 48 | struct cfr_rcc_param *cfg) |
| 49 | { |
| 50 | if (wmi_handle->ops->send_cfr_rcc_cmd) |
| 51 | return wmi_handle->ops->send_cfr_rcc_cmd(wmi_handle, cfg); |
| 52 | return QDF_STATUS_E_FAILURE; |
| 53 | } |
| 54 | #endif /* WLAN_ENH_CFR_ENABLE */ |
| 55 | #endif /* WLAN_CFR_ENABLE */ |