diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-11-03 20:07:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 17:09:04 -0500 |
commit | 3d536acf45ba65acb15fc65bf46f8d6c7ad6c463 (patch) | |
tree | bd07619f8a4c9f1a926abcbc203fadc5962c13fa /drivers/net/wireless/ath/ath.h | |
parent | 30cbd42265546a3efa146d4eb3456165325c83a7 (diff) |
ath9k: move struct ath_ani to common area
This can be shared between ath9k and ath9k_htc. It will also
help with sharing routine helpers on the RX path.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath.h')
-rw-r--r-- | drivers/net/wireless/ath/ath.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index 5e19a7330d39..b3c8ee08bb7c 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -23,6 +23,16 @@ | |||
23 | 23 | ||
24 | static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; | 24 | static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; |
25 | 25 | ||
26 | struct ath_ani { | ||
27 | bool caldone; | ||
28 | int16_t noise_floor; | ||
29 | unsigned int longcal_timer; | ||
30 | unsigned int shortcal_timer; | ||
31 | unsigned int resetcal_timer; | ||
32 | unsigned int checkani_timer; | ||
33 | struct timer_list timer; | ||
34 | }; | ||
35 | |||
26 | enum ath_device_state { | 36 | enum ath_device_state { |
27 | ATH_HW_UNAVAILABLE, | 37 | ATH_HW_UNAVAILABLE, |
28 | ATH_HW_INITIALIZED, | 38 | ATH_HW_INITIALIZED, |
@@ -66,6 +76,8 @@ struct ath_common { | |||
66 | int debug_mask; | 76 | int debug_mask; |
67 | enum ath_device_state state; | 77 | enum ath_device_state state; |
68 | 78 | ||
79 | struct ath_ani ani; | ||
80 | |||
69 | u16 cachelsz; | 81 | u16 cachelsz; |
70 | u16 curaid; | 82 | u16 curaid; |
71 | u8 macaddr[ETH_ALEN]; | 83 | u8 macaddr[ETH_ALEN]; |