1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
|
#ifndef __INC_MGNTCONSTRUCTPACKET_H
#define __INC_MGNTCONSTRUCTPACKET_H
#include "1x_kmsm_eapolkey.h"
#include "RmDef.h"
VOID
SelectSupportedRatesElement(
IN WIRELESS_MODE wirelessmode,
IN OCTET_STRING SuppRates,
IN BOOLEAN bFilterCck,
OUT POCTET_STRING pSuppRates,
OUT POCTET_STRING pExtSuppRates
);
VOID
ConstructBeaconFrame(
PADAPTER Adapter
);
VOID
UpdateBeaconFrame(
PADAPTER Adapter
);
BOOLEAN
Isdot11acAvailable(
PADAPTER Adapter
);
VOID
ConstructProbeRequest(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
BOOLEAN bBroadcastBssid,
BOOLEAN bAnySsid,
BOOLEAN bForcePowerSave
);
VOID
ConstructProbeRequestEx(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
OCTET_STRING Ssid,
BOOLEAN bForcePowerSave
);
VOID
ConstructAuthenticatePacket(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte auStaAddr,
u1Byte AuthAlg,
u1Byte AuthSeq,
u1Byte AuthStatusCode,
OCTET_STRING AuthChallengetext
);
VOID
ConstructAssociateReq(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte asocStaAddr,
u2Byte asocCap,
u2Byte asocListenInterval,
OCTET_STRING asocSsid,
OCTET_STRING asocSuppRates
);
VOID
ConstructReAssociateReq(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte ReasocStaAddr,
u2Byte ReasocCap,
u2Byte ReasocListenInterval,
pu1Byte CurrentasocStaAddr,
OCTET_STRING ReasocSsid,
OCTET_STRING ReasocSuppRates
);
VOID
ConstructAssociateRsp(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte asocStaAddr,
u2Byte asocCap,
u2Byte asocStatusCode,
u2Byte asocID,
BOOLEAN bReAssocRsp,
BOOLEAN bQosSta
);
VOID
ConstructDeauthenticatePacket(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte auSta,
u1Byte asRsn
);
VOID
ConstructDisassociatePacket(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte asSta,
u1Byte asRsn
);
VOID
ConstructProbeRsp(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte StaAddr,
IN BOOLEAN bHideSSID,
IN PRT_RFD pRfdProbeReq,
IN POCTET_STRING posProbeReq
);
VOID
ConstructCustomizedData(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
OUT pu4Byte pLength,
IN u2Byte pktLength
);
VOID
ConstructNullFunctionData(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte StaAddr,
IN BOOLEAN bQoS,
IN u1Byte AC,
IN BOOLEAN bEosp,
IN BOOLEAN bForcePowerSave
);
VOID
ConstructBtNullFunctionData(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte StaAddr,
IN BOOLEAN bQoS,
IN u1Byte AC,
IN BOOLEAN bEosp,
IN BOOLEAN bForcePowerSave
);
VOID
ConstructPSPoll(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength
);
VOID
ConstructMagicPacket(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte StaAddr
);
VOID
ConstructEapolKeyPacket(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
pu1Byte StaAddr,
pu1Byte pKCK, // Pointer to KCK (EAPOL-Key Confirmation Key).
pu1Byte pKEK, // Pointer to KEK (EAPOL-Key Encryption Key).
KeyType eKeyType, // EAPOL-Key Information field: Key Type bit: type_Group or type_Pairwise.
BOOLEAN bInstall, // EAPOL-Key Information field: Install Flag.
BOOLEAN bKeyAck, // EAPOL-Key Information field: Key Ack bit.
BOOLEAN bKeyMIC, // EAPOL-Key Information field: Key MIC bit. If true, we will calculate EAPOL MIC and fill it into Key MIC field.
BOOLEAN bSecure, // EAPOL-Key Information field: Secure bit.
BOOLEAN bError, // EAPOL-Key Information field: Error bit. True for MIC failure report.
BOOLEAN bRequest, // EAPOL-Key Information field: Requst bit.
u8Byte u8bKeyReplayCounter, // EAPOL-KEY Replay Counter field.
pu1Byte pKeyNonce, // EAPOL-Key Key Nonce field (32-byte).
u8Byte u8bKeyRSC, // EAPOL-Key Key RSC field (8-byte).
POCTET_STRING posRSNIE, // Key Data field: Pointer to RSN IE.
pu1Byte pGTK, // Key Data field: Pointer to GTK.
BOOLEAN bEncrypt // encrypt the packet or not. added by Annie, 2005-07-11.
);
VOID
ConstructCcxRmReport(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN PRT_RM_REPORTS pRmReports
);
VOID
ConstructDot11kRmReport(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN PRT_RM_REQUESTS pRmRequests,
IN PRT_RM_REPORTS pRmReports
);
VOID
ConstructCcxROGUEAPReport(
PADAPTER Adapter,
pu1Byte Buffer,
pu4Byte pLength,
int index
);
//
// Add for all management action frame to filling frame header.
//
VOID
ConstructMaFrameHdr(
IN PADAPTER Adapter,
IN pu1Byte pAddr,
IN u1Byte Category,
IN u1Byte Action,
OUT POCTET_STRING posMaFrame
);
VOID
AppendAdditionalIEs(
OUT POCTET_STRING packet,
IN OCTET_STRING ies
);
VOID
ConstructQosADDTSPacket(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN u1Byte DialogToken,
IN PQOS_TSTREAM pTs,
IN u4Byte numTspec
);
VOID
ConstructQosDELTSPacket(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN PQOS_TSTREAM pTs,
IN u4Byte numTspec
);
VOID
ConstructCcxNeighborPoll(
IN PADAPTER Adapter,
OUT pu1Byte Buffer,
OUT pu4Byte pLength
);
VOID
AppendQoSElement(
OUT POCTET_STRING packet,
IN POCTET_STRING element,
IN u1Byte OUI_Subtype
);
VOID
ConstructEAPOLStartPacket(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN BOOLEAN bEncrypt
);
VOID
ConstructARPResponse(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte pIPAddres
);
VOID
ConstructCtsPacket(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte pStaAddr
);
VOID
ConstructNSPacket(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte pTAAddress
);
VOID
ConstructSAQeuryReq(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte pTargetSta,
IN u2Byte Identifier
);
VOID
ConstructSAQeuryRsp(
IN PADAPTER Adapter,
IN pu1Byte Buffer,
IN pu4Byte pLength,
IN pu1Byte pTargetSta,
IN u2Byte Identifier
);
RT_STATUS
FT_AppendMdIE(
IN PADAPTER pAdapter,
IN CONTENT_PKT_TYPE contentType,
IN PVOID pInfoBuf,
IN u4Byte InfoBufLen,
IN u4Byte maxBufLen,
OUT POCTET_STRING posOutContent
);
RT_STATUS
FT_AppendFtIE(
IN PADAPTER pAdapter,
IN CONTENT_PKT_TYPE contentType,
IN PVOID pInfoBuf,
IN u4Byte InfoBufLen,
IN u4Byte maxBufLen,
OUT POCTET_STRING posOutContent
);
#endif // #ifndef __INC_MGNTCONSTRUCTPACKET_H
|