1 /* 2 * Copyright (c) 2017-2018, 2020 The Linux Foundation. All rights reserved. 3 * 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: target_if_dfs.h 22 * This file contains dfs target interface 23 */ 24 25 /** 26 * target_if_register_dfs_tx_ops() - register dfs tx ops 27 * @dfs_tx_ops: tx ops pointer 28 * 29 * Register dfs tx ops 30 * 31 * Return: QDF_STATUS 32 */ 33 QDF_STATUS target_if_register_dfs_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops); 34 35 /** 36 * target_if_dfs_get_rx_ops() - Get dfs_rx_ops 37 * @psoc: psoc handle. 38 * 39 * Return: dfs_rx_ops. 40 */ 41 static inline struct wlan_lmac_if_dfs_rx_ops * 42 target_if_dfs_get_rx_ops(struct wlan_objmgr_psoc *psoc) 43 { 44 struct wlan_lmac_if_rx_ops *rx_ops; 45 46 rx_ops = wlan_psoc_get_lmac_if_rxops(psoc); 47 if (!rx_ops) { 48 target_if_err("rx_ops is NULL"); 49 return NULL; 50 } 51 52 return &rx_ops->dfs_rx_ops; 53 } 54 55