more coding style fixes
[acx-mac80211.git] / acx_mac80211.h
blobb960eb095e83f15909ece8ead94193391139342b
1 struct acx_key {
2 u8 enabled:1;
3 u8 algorithm;
4 };
6 struct acx_interface {
7 /* Opaque ID of the operating interface (!= monitor
8 * interface) from the ieee80211 subsystem.
9 * Do not modify.
11 int if_id;
12 /* MAC address. */
13 u8 *mac_addr;
14 /* Current BSSID (if any). */
15 u8 *bssid;
17 /* Interface type. (IEEE80211_IF_TYPE_XXX) */
18 int type;
19 /* Counter of active monitor interfaces. */
20 int monitor;
21 /* Is the card operating in AP, STA or IBSS mode? */
22 unsigned int operating:1;
23 /* Promisc mode active?
24 * Note that (monitor != 0) implies promisc.
26 unsigned int promisc:1;
28 #ifdef TODO
29 # undef TODO
30 #endif
31 #define TODO() \
32 do { \
33 printk(KERN_INFO "TODO: Incomplete code in %s() at %s:%d\n", \
34 __FUNCTION__, __FILE__, __LINE__); \
35 } while (0)
37 #ifdef FIXME
38 # undef FIXME
39 #endif
40 #define FIXME() \
41 do { \
42 printk(KERN_INFO "FIXME: Possibly broken code in %s() at %s:%d\n", \
43 __FUNCTION__, __FILE__, __LINE__); \
44 } while (0)
48 #define ACX_MODE_NOTADHOC 0xFFFF
49 #define ACX_MODE_PROMISC 0x5
51 /** Rate values **/
52 #define ACX_CCK_RATE_1MB 0x02
53 #define ACX_CCK_RATE_2MB 0x04
54 #define ACX_CCK_RATE_5MB 0x0B
55 #define ACX_CCK_RATE_11MB 0x16
56 #define ACX_OFDM_RATE_6MB 0x0C
57 #define ACX_OFDM_RATE_9MB 0x12
58 #define ACX_OFDM_RATE_12MB 0x18
59 #define ACX_OFDM_RATE_18MB 0x24
60 #define ACX_OFDM_RATE_24MB 0x30
61 #define ACX_OFDM_RATE_36MB 0x48
62 #define ACX_OFDM_RATE_48MB 0x60
63 #define ACX_OFDM_RATE_54MB 0x6C