Merge branch 'master' of http://xazz.no-ip.info/projects/acx-mac80211
[acx-mac80211.git] / acx_mac80211.h
blobf7ad63dceb13361cd4a5cdd6ab18ef4f3ff81730
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;
33 #ifdef TODO
34 # undef TODO
35 #endif
36 #define TODO() \
37 do { \
38 printk(KERN_INFO "TODO: Incomplete code in %s() at %s:%d\n", \
39 __FUNCTION__, __FILE__, __LINE__); \
40 } while (0)
42 #ifdef FIXME
43 # undef FIXME
44 #endif
45 #define FIXME() \
46 do { \
47 printk(KERN_INFO "FIXME: Possibly broken code in %s() at %s:%d\n", \
48 __FUNCTION__, __FILE__, __LINE__); \
49 } while (0)
53 #define ACX_MODE_NOTADHOC 0xFFFF
54 #define ACX_MODE_PROMISC 0x5
56 /** Rate values **/
57 #define ACX_CCK_RATE_1MB 0x02
58 #define ACX_CCK_RATE_2MB 0x04
59 #define ACX_CCK_RATE_5MB 0x0B
60 #define ACX_CCK_RATE_11MB 0x16
61 #define ACX_OFDM_RATE_6MB 0x0C
62 #define ACX_OFDM_RATE_9MB 0x12
63 #define ACX_OFDM_RATE_12MB 0x18
64 #define ACX_OFDM_RATE_18MB 0x24
65 #define ACX_OFDM_RATE_24MB 0x30
66 #define ACX_OFDM_RATE_36MB 0x48
67 #define ACX_OFDM_RATE_48MB 0x60
68 #define ACX_OFDM_RATE_54MB 0x6C
70 #endif /* _ACX_MAC80211_H_ */