1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 ******************************************************************************/
18 #include <osdep_service.h>
19 #include <drv_types.h>
22 #ifndef OID_802_11_CAPABILITY
23 #define OID_802_11_CAPABILITY 0x0d010122
26 #ifndef OID_802_11_PMKID
27 #define OID_802_11_PMKID 0x0d010123
31 /* For DDK-defined OIDs */
32 #define OID_NDIS_SEG1 0x00010100
33 #define OID_NDIS_SEG2 0x00010200
34 #define OID_NDIS_SEG3 0x00020100
35 #define OID_NDIS_SEG4 0x01010100
36 #define OID_NDIS_SEG5 0x01020100
37 #define OID_NDIS_SEG6 0x01020200
38 #define OID_NDIS_SEG7 0xFD010100
39 #define OID_NDIS_SEG8 0x0D010100
40 #define OID_NDIS_SEG9 0x0D010200
41 #define OID_NDIS_SEG10 0x0D020200
43 #define SZ_OID_NDIS_SEG1 23
44 #define SZ_OID_NDIS_SEG2 3
45 #define SZ_OID_NDIS_SEG3 6
46 #define SZ_OID_NDIS_SEG4 6
47 #define SZ_OID_NDIS_SEG5 4
48 #define SZ_OID_NDIS_SEG6 8
49 #define SZ_OID_NDIS_SEG7 7
50 #define SZ_OID_NDIS_SEG8 36
51 #define SZ_OID_NDIS_SEG9 24
52 #define SZ_OID_NDIS_SEG10 19
54 /* For Realtek-defined OIDs */
55 #define OID_MP_SEG1 0xFF871100
56 #define OID_MP_SEG2 0xFF818000
58 #define OID_MP_SEG3 0xFF818700
59 #define OID_MP_SEG4 0xFF011100
67 void *adapter_context;
69 void *information_buf;
70 u32 information_buf_len;
73 enum oid_type type_of_oid;
77 #if defined(_RTW_MP_IOCTL_C_)
78 static int oid_null_function(struct oid_par_priv *poid_par_priv)
80 return NDIS_STATUS_SUCCESS;
84 extern struct iw_handler_def rtw_handlers_def;
86 int drv_query_info(struct net_device *miniportadaptercontext, NDIS_OID oid,
87 void *informationbuffer, u32 informationbufferlength,
88 u32 *byteswritten, u32 *bytesneeded);
90 int drv_set_info(struct net_device *MiniportAdapterContext,
91 NDIS_OID oid, void *informationbuffer,
92 u32 informationbufferlength, u32 *bytesread,
95 #endif /* #ifndef __INC_CEINFO_ */