1 // Licensed under the Apache License, Version 2.0
2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4 // All files in the project carrying such notice may not be copied, modified, or distributed
5 // except according to those terms.
6 use shared::guiddef::GUID;
7 use shared::minwindef::{BOOL, PUCHAR, UCHAR, ULONG, USHORT};
8 use shared::windot11::{DOT11_CURRENT_OPERATION_MODE, DOT11_MAC_ADDRESS};
9 use um::winnt::LPWSTR;
10 STRUCT!{struct DOT11_ADAPTER {
11     gAdapterId: GUID,
12     pszDescription: LPWSTR,
13     Dot11CurrentOpMode: DOT11_CURRENT_OPERATION_MODE,
14 }}
15 pub type PDOT11_ADAPTER = *mut DOT11_ADAPTER;
16 STRUCT!{struct DOT11_BSS_LIST {
17     uNumOfBytes: ULONG,
18     pucBuffer: PUCHAR,
19 }}
20 pub type PDOT11_BSS_LIST = *mut DOT11_BSS_LIST;
21 STRUCT!{struct DOT11_PORT_STATE {
22     PeerMacAddress: DOT11_MAC_ADDRESS,
23     uSessionId: ULONG,
24     bPortControlled: BOOL,
25     bPortAuthorized: BOOL,
26 }}
27 pub type PDOT11_PORT_STATE = *mut DOT11_PORT_STATE;
28 STRUCT!{#[repr(packed)] struct DOT11_SECURITY_PACKET_HEADER {
29     PeerMac: DOT11_MAC_ADDRESS,
30     usEtherType: USHORT,
31     Data: [UCHAR; 1],
32 }}
33 pub type PDOT11_SECURITY_PACKET_HEADER = *mut DOT11_SECURITY_PACKET_HEADER;
34