1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2017 Realtek Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of version 2 of the GNU General Public License as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 * 15 *****************************************************************************/ 16 #ifndef _RTW_IOCTL_H_ 17 #define _RTW_IOCTL_H_ 18 19 enum oid_type { 20 QUERY_OID, 21 SET_OID 22 }; 23 24 struct oid_par_priv { 25 void *adapter_context; 26 NDIS_OID oid; 27 void *information_buf; 28 u32 information_buf_len; 29 u32 *bytes_rw; 30 u32 *bytes_needed; 31 enum oid_type type_of_oid; 32 u32 dbg; 33 }; 34 35 #if defined(PLATFORM_LINUX) && defined(CONFIG_WIRELESS_EXT) 36 extern struct iw_handler_def rtw_handlers_def; 37 #endif 38 39 extern void rtw_request_wps_pbc_event(_adapter *padapter); 40 41 #ifdef CONFIG_APPEND_VENDOR_IE_ENABLE 42 extern int rtw_vendor_ie_get_raw_data(struct net_device *, u32, char *, u32); 43 extern int rtw_vendor_ie_get_data(struct net_device*, int , char*); 44 extern int rtw_vendor_ie_get(struct net_device *, struct iw_request_info *, union iwreq_data *, char *); 45 extern int rtw_vendor_ie_set(struct net_device*, struct iw_request_info*, union iwreq_data*, char*); 46 #endif 47 48 #endif /* #ifndef __INC_CEINFO_ */ 49