diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-11-04 20:21:01 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-11 17:09:09 -0500 |
commit | 7e86c1048a9f5f1e157daf28411f3526f0b9f7b6 (patch) | |
tree | 35ad3decc5ac70d0cda31a003d1c0719b9e61281 /drivers/net/wireless/ath/ath.h | |
parent | 1e875e9f16e3138d0e23cbf806a6d9520b622db2 (diff) |
ath9k: move driver keymap, keymax and splitmic to common
This will make sharing code easier between ath9k and ath9k_htc.
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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index 4af13628bafe..9e05648356fe 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -21,6 +21,16 @@ | |||
21 | #include <linux/if_ether.h> | 21 | #include <linux/if_ether.h> |
22 | #include <net/mac80211.h> | 22 | #include <net/mac80211.h> |
23 | 23 | ||
24 | /* | ||
25 | * The key cache is used for h/w cipher state and also for | ||
26 | * tracking station state such as the current tx antenna. | ||
27 | * We also setup a mapping table between key cache slot indices | ||
28 | * and station state to short-circuit node lookups on rx. | ||
29 | * Different parts have different size key caches. We handle | ||
30 | * up to ATH_KEYMAX entries (could dynamically allocate state). | ||
31 | */ | ||
32 | #define ATH_KEYMAX 128 /* max key cache size we handle */ | ||
33 | |||
24 | static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; | 34 | static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; |
25 | 35 | ||
26 | struct ath_ani { | 36 | struct ath_ani { |
@@ -89,6 +99,10 @@ struct ath_common { | |||
89 | 99 | ||
90 | u32 rx_bufsize; | 100 | u32 rx_bufsize; |
91 | 101 | ||
102 | u32 keymax; | ||
103 | DECLARE_BITMAP(keymap, ATH_KEYMAX); | ||
104 | u8 splitmic; | ||
105 | |||
92 | struct ath_regulatory regulatory; | 106 | struct ath_regulatory regulatory; |
93 | const struct ath_ops *ops; | 107 | const struct ath_ops *ops; |
94 | const struct ath_bus_ops *bus_ops; | 108 | const struct ath_bus_ops *bus_ops; |