1 /* 2 * Copyright (c) 2011, 2016-2017 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2010, Atheros Communications Inc. 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for 7 * any purpose with or without fee is hereby granted, provided that the 8 * above copyright notice and this permission notice appear in all 9 * copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 12 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 13 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 14 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 15 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 16 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 17 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 18 * PERFORMANCE OF THIS SOFTWARE. 19 */ 20 21 /** 22 * DOC: This file has dfs param copy functions. 23 */ 24 25 #ifndef _DFS_IOCTL_PRIVATE_H_ 26 #define _DFS_IOCTL_PRIVATE_H_ 27 28 29 static inline void wlan_dfs_dfsparam_to_ioctlparam(struct wlan_dfs_phyerr_param * src,struct dfs_ioctl_params * dst)30 wlan_dfs_dfsparam_to_ioctlparam(struct wlan_dfs_phyerr_param *src, 31 struct dfs_ioctl_params *dst) 32 { 33 dst->dfs_firpwr = src->pe_firpwr; 34 dst->dfs_rrssi = src->pe_rrssi; 35 dst->dfs_height = src->pe_height; 36 dst->dfs_prssi = src->pe_prssi; 37 dst->dfs_inband = src->pe_inband; 38 dst->dfs_relpwr = src->pe_relpwr; 39 dst->dfs_relstep = src->pe_relstep; 40 dst->dfs_maxlen = src->pe_maxlen; 41 } 42 43 #endif /* _DFS_IOCTL_PRIVATE_H_ */ 44