Go to the documentation of this file.
57 #ifndef _P80211TYPES_H
58 #define _P80211TYPES_H
65 #define P80211_MIB_CAT_DOT11SMT 1
66 #define P80211_MIB_CAT_DOT11MAC 2
67 #define P80211_MIB_CAT_DOT11PHY 3
69 #define P80211SEC_DOT11SMT P80211_MIB_CAT_DOT11SMT
70 #define P80211SEC_DOT11MAC P80211_MIB_CAT_DOT11MAC
71 #define P80211SEC_DOT11PHY P80211_MIB_CAT_DOT11PHY
74 #define P80211_MSG_CAT_DOT11REQ 1
75 #define P80211_MSG_CAT_DOT11IND 2
84 #define P80211ENUM_truth_false 0
85 #define P80211ENUM_truth_true 1
86 #define P80211ENUM_ifstate_disable 0
87 #define P80211ENUM_ifstate_fwload 1
88 #define P80211ENUM_ifstate_enable 2
89 #define P80211ENUM_bsstype_infrastructure 1
90 #define P80211ENUM_bsstype_independent 2
91 #define P80211ENUM_bsstype_any 3
92 #define P80211ENUM_authalg_opensystem 1
93 #define P80211ENUM_authalg_sharedkey 2
94 #define P80211ENUM_scantype_active 1
95 #define P80211ENUM_resultcode_success 1
96 #define P80211ENUM_resultcode_invalid_parameters 2
97 #define P80211ENUM_resultcode_not_supported 3
98 #define P80211ENUM_resultcode_refused 6
99 #define P80211ENUM_resultcode_cant_set_readonly_mib 10
100 #define P80211ENUM_resultcode_implementation_failure 11
101 #define P80211ENUM_resultcode_cant_get_writeonly_mib 12
102 #define P80211ENUM_status_successful 0
103 #define P80211ENUM_status_unspec_failure 1
104 #define P80211ENUM_status_ap_full 17
105 #define P80211ENUM_msgitem_status_data_ok 0
106 #define P80211ENUM_msgitem_status_no_value 1
111 #define MAXLEN_PSTR6 (6)
112 #define MAXLEN_PSTR14 (14)
113 #define MAXLEN_PSTR32 (32)
114 #define MAXLEN_PSTR255 (255)
115 #define MAXLEN_MIBATTRIBUTE (392)
123 #define MKENUMNAME(name) p80211enum_ ## name
139 #define P80211DID_LSB_SECTION (0)
140 #define P80211DID_LSB_GROUP (6)
141 #define P80211DID_LSB_ITEM (12)
142 #define P80211DID_LSB_INDEX (18)
143 #define P80211DID_LSB_ISTABLE (26)
144 #define P80211DID_LSB_ACCESS (27)
146 #define P80211DID_MASK_SECTION (0x0000003fUL)
147 #define P80211DID_MASK_GROUP (0x0000003fUL)
148 #define P80211DID_MASK_ITEM (0x0000003fUL)
149 #define P80211DID_MASK_INDEX (0x000000ffUL)
150 #define P80211DID_MASK_ISTABLE (0x00000001UL)
151 #define P80211DID_MASK_ACCESS (0x00000003UL)
153 #define P80211DID_MK(a, m, l) ((((u32)(a)) & (m)) << (l))
155 #define P80211DID_MKSECTION(a) P80211DID_MK(a, \
156 P80211DID_MASK_SECTION, \
157 P80211DID_LSB_SECTION)
158 #define P80211DID_MKGROUP(a) P80211DID_MK(a, \
159 P80211DID_MASK_GROUP, \
161 #define P80211DID_MKITEM(a) P80211DID_MK(a, \
162 P80211DID_MASK_ITEM, \
164 #define P80211DID_MKINDEX(a) P80211DID_MK(a, \
165 P80211DID_MASK_INDEX, \
167 #define P80211DID_MKISTABLE(a) P80211DID_MK(a, \
168 P80211DID_MASK_ISTABLE, \
169 P80211DID_LSB_ISTABLE)
171 #define P80211DID_MKID(s, g, i, n, t, a) (P80211DID_MKSECTION(s) | \
172 P80211DID_MKGROUP(g) | \
173 P80211DID_MKITEM(i) | \
174 P80211DID_MKINDEX(n) | \
175 P80211DID_MKISTABLE(t) | \
178 #define P80211DID_GET(a, m, l) ((((u32)(a)) >> (l)) & (m))
180 #define P80211DID_SECTION(a) P80211DID_GET(a, \
181 P80211DID_MASK_SECTION, \
182 P80211DID_LSB_SECTION)
183 #define P80211DID_GROUP(a) P80211DID_GET(a, \
184 P80211DID_MASK_GROUP, \
186 #define P80211DID_ITEM(a) P80211DID_GET(a, \
187 P80211DID_MASK_ITEM, \
189 #define P80211DID_INDEX(a) P80211DID_GET(a, \
190 P80211DID_MASK_INDEX, \
192 #define P80211DID_ISTABLE(a) P80211DID_GET(a, \
193 P80211DID_MASK_ISTABLE, \
194 P80211DID_LSB_ISTABLE)
195 #define P80211DID_ACCESS(a) P80211DID_GET(a, \
196 P80211DID_MASK_ACCESS, \
197 P80211DID_LSB_ACCESS)