1 /** @file moal_wext.h 2 * 3 * @brief This file contains definition for wireless extension IOCTL call. 4 * 5 * Copyright (C) 2008-2017, Marvell International Ltd. 6 * 7 * This software file (the "File") is distributed by Marvell International 8 * Ltd. under the terms of the GNU General Public License Version 2, June 1991 9 * (the "License"). You may use, redistribute and/or modify this File in 10 * accordance with the terms and conditions of the License, a copy of which 11 * is available by writing to the Free Software Foundation, Inc., 12 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the 13 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 14 * 15 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE 17 * ARE EXPRESSLY DISCLAIMED. The License provides additional details about 18 * this warranty disclaimer. 19 * 20 */ 21 22 /******************************************************** 23 Change log: 24 10/21/2008: initial version 25 ********************************************************/ 26 27 #ifndef _WOAL_WEXT_H_ 28 #define _WOAL_WEXT_H_ 29 30 /** NF value for default scan */ 31 #define MRVDRV_NF_DEFAULT_SCAN_VALUE (-96) 32 33 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) 34 /** Add event */ 35 #define IWE_STREAM_ADD_EVENT(i, c, e, w, l) iwe_stream_add_event((i), (c), (e), (w), (l)) 36 /** Add point */ 37 #define IWE_STREAM_ADD_POINT(i, c, e, w, p) iwe_stream_add_point((i), (c), (e), (w), (p)) 38 /** Add value */ 39 #define IWE_STREAM_ADD_VALUE(i, c, v, e, w, l) iwe_stream_add_value((i), (c), (v), (e), (w), (l)) 40 #else 41 /** Add event */ 42 #define IWE_STREAM_ADD_EVENT(i, c, e, w, l) iwe_stream_add_event((c), (e), (w), (l)) 43 /** Add point */ 44 #define IWE_STREAM_ADD_POINT(i, c, e, w, p) iwe_stream_add_point((c), (e), (w), (p)) 45 /** Add value */ 46 #define IWE_STREAM_ADD_VALUE(i, c, v, e, w, l) iwe_stream_add_value((c), (v), (e), (w), (l)) 47 #endif 48 49 extern struct iw_handler_def woal_handler_def; 50 struct iw_statistics *woal_get_wireless_stats(struct net_device *dev); 51 #endif /* _WOAL_WEXT_H_ */ 52