fix: fix compilation warning in common.c
[acx-mac80211.git] / acx_mac80211.h
blobf9870bb736d101f888a1b42d7926f7745c77e1ad
1 struct acx_key {
2 u8 enabled:1;
3 u8 algorithm;
4 };
6 struct acx_stats {
7 u8 link_quality;
8 /* Store the last TX/RX times here for updating the leds. */
9 unsigned long last_tx;
10 unsigned long last_rx;
12 struct acx_interface {
13 /* Opaque ID of the operating interface (!= monitor
14 * interface) from the ieee80211 subsystem.
15 * Do not modify.
17 int if_id;
18 /* MAC address. */
19 u8 *mac_addr;
20 /* Current BSSID (if any). */
21 u8 *bssid;
23 /* Interface type. (IEEE80211_IF_TYPE_XXX) */
24 int type;
25 /* Counter of active monitor interfaces. */
26 int monitor;
27 /* Is the card operating in AP, STA or IBSS mode? */
28 unsigned int operating:1;
29 /* Promisc mode active?
30 * Note that (monitor != 0) implies promisc.
32 unsigned int promisc:1;
34 #ifdef TODO
35 # undef TODO
36 #endif
37 #define TODO() \
38 do { \
39 printk(KERN_INFO "TODO: Incomplete code in %s() at %s:%d\n", \
40 __FUNCTION__, __FILE__, __LINE__); \
41 } while (0)
43 #ifdef FIXME
44 # undef FIXME
45 #endif
46 #define FIXME() \
47 do { \
48 printk(KERN_INFO "FIXME: Possibly broken code in %s() at %s:%d\n", \
49 __FUNCTION__, __FILE__, __LINE__); \
50 } while (0)
54 #define ACX_MODE_NOTADHOC 0xFFFF
55 #define ACX_MODE_PROMISC 0x5
57 /** Rate values **/
58 #define ACX_CCK_RATE_1MB 0x02
59 #define ACX_CCK_RATE_2MB 0x04
60 #define ACX_CCK_RATE_5MB 0x0B
61 #define ACX_CCK_RATE_11MB 0x16
62 #define ACX_OFDM_RATE_6MB 0x0C
63 #define ACX_OFDM_RATE_9MB 0x12
64 #define ACX_OFDM_RATE_12MB 0x18
65 #define ACX_OFDM_RATE_18MB 0x24
66 #define ACX_OFDM_RATE_24MB 0x30
67 #define ACX_OFDM_RATE_36MB 0x48
68 #define ACX_OFDM_RATE_48MB 0x60
69 #define ACX_OFDM_RATE_54MB 0x6C
70 extern struct ethtool_ops acx_ethtool_ops;