Reverted refactoring of 'interrogate' cmds to 'query'
[acx-mac80211.git] / acx_mac80211.h
blob82a22b94a81fea02b9f8a03c8bdaac59af6f646e
1 #ifndef _ACX_MAC80211_H_
2 #define _ACX_MAC80211_H_
4 #include <net/mac80211.h>
6 struct acx_key {
7 u8 enabled:1;
8 u8 algorithm;
9 };
11 struct acx_interface {
12 /* Opaque ID of the operating interface (!= monitor
13 * interface) from the ieee80211 subsystem.
14 * Do not modify.
16 int if_id;
17 /* MAC address. */
18 u8 *mac_addr;
19 /* Current BSSID (if any). */
20 u8 *bssid;
22 /* Interface type. (IEEE80211_IF_TYPE_XXX) */
23 int type;
24 /* Counter of active monitor interfaces. */
25 int monitor;
26 /* Is the card operating in AP, STA or IBSS mode? */
27 unsigned int operating:1;
28 /* Promisc mode active?
29 * Note that (monitor != 0) implies promisc.
31 unsigned int promisc:1;
35 #define ACX_MODE_NOTADHOC 0xFFFF
36 #define ACX_MODE_PROMISC 0x5
38 /** Rate values **/
39 #define ACX_CCK_RATE_1MB 0x02
40 #define ACX_CCK_RATE_2MB 0x04
41 #define ACX_CCK_RATE_5MB 0x0B
42 #define ACX_CCK_RATE_11MB 0x16
43 #define ACX_OFDM_RATE_6MB 0x0C
44 #define ACX_OFDM_RATE_9MB 0x12
45 #define ACX_OFDM_RATE_12MB 0x18
46 #define ACX_OFDM_RATE_18MB 0x24
47 #define ACX_OFDM_RATE_24MB 0x30
48 #define ACX_OFDM_RATE_36MB 0x48
49 #define ACX_OFDM_RATE_48MB 0x60
50 #define ACX_OFDM_RATE_54MB 0x6C
52 #endif /* _ACX_MAC80211_H_ */