Go to the documentation of this file.
32 #include <linux/if_ether.h>
39 #define U_ETHER_ADDR_STR_LEN (ETH_ALEN * 2 + 1)
41 #define U_MULTI_ADDR_LEN 8 // multicast address length
45 #define TYPE_MGMT_PROBE_RSP 0x5000
52 #define FC_TODS 0x0001
53 #define FC_FROMDS 0x0002
54 #define FC_MOREFRAG 0x0004
55 #define FC_RETRY 0x0008
56 #define FC_POWERMGT 0x0010
57 #define FC_MOREDATA 0x0020
59 #define TYPE_802_11_ATIM 0x9000
61 #define TYPE_802_11_DATA 0x0800
62 #define TYPE_802_11_CTL 0x0400
63 #define TYPE_802_11_MGMT 0x0000
64 #define TYPE_802_11_MASK 0x0C00
65 #define TYPE_SUBTYPE_MASK 0xFC00
66 #define TYPE_802_11_NODATA 0x4000
67 #define TYPE_DATE_NULL 0x4800
69 #define TYPE_CTL_PSPOLL 0xa400
70 #define TYPE_CTL_RTS 0xb400
71 #define TYPE_CTL_CTS 0xc400
72 #define TYPE_CTL_ACK 0xd400
76 #else //if LITTLE_ENDIAN
83 #define TYPE_MGMT_PROBE_RSP 0x0050
90 #define FC_TODS 0x0100
91 #define FC_FROMDS 0x0200
92 #define FC_MOREFRAG 0x0400
93 #define FC_RETRY 0x0800
94 #define FC_POWERMGT 0x1000
95 #define FC_MOREDATA 0x2000
97 #define TYPE_802_11_ATIM 0x0090
99 #define TYPE_802_11_DATA 0x0008
100 #define TYPE_802_11_CTL 0x0004
101 #define TYPE_802_11_MGMT 0x0000
102 #define TYPE_802_11_MASK 0x000C
103 #define TYPE_SUBTYPE_MASK 0x00FC
104 #define TYPE_802_11_NODATA 0x0040
105 #define TYPE_DATE_NULL 0x0048
107 #define TYPE_CTL_PSPOLL 0x00a4
108 #define TYPE_CTL_RTS 0x00b4
109 #define TYPE_CTL_CTS 0x00c4
110 #define TYPE_CTL_ACK 0x00d4
114 #endif //#ifdef __BIG_ENDIAN
116 #define WEP_IV_MASK 0x00FFFFFF