diff options
author | Bruno Randolf <br1@einfach.org> | 2010-09-08 03:04:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-16 15:19:45 -0400 |
commit | 1bba5b7329e15555dab90071b24ca84d0afcc635 (patch) | |
tree | b9a60505fb9f88bac588694be1fd9d5dc7836c61 /drivers/net/wireless/ath/reg.h | |
parent | 34a1305137f484ee1806df5a00b9d8ee8d4ef758 (diff) |
ath: Copy key cache management functions from ath9k to ath
Copied the key cache management functions from ath9k (common.c and hw.c) to
ath/key.c so we can use them from ath5k, later.
Minor changes have been made:
- renamed ath9k_* to ath_*
- replaced ah->caps.keycache_size with common->keymax
- removed ATH9K_IS_MIC_ENABLED since it is always true.
- the AR_PCU_MIC_NEW_LOC_ENA flag is replaced with (splitmic == 0).
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/reg.h')
-rw-r--r-- | drivers/net/wireless/ath/reg.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/reg.h b/drivers/net/wireless/ath/reg.h index dfe1fbec24f5..e798ef476581 100644 --- a/drivers/net/wireless/ath/reg.h +++ b/drivers/net/wireless/ath/reg.h | |||
@@ -24,4 +24,27 @@ | |||
24 | #define AR_BSSMSKL 0x80e0 | 24 | #define AR_BSSMSKL 0x80e0 |
25 | #define AR_BSSMSKU 0x80e4 | 25 | #define AR_BSSMSKU 0x80e4 |
26 | 26 | ||
27 | #define AR_KEYTABLE_0 0x8800 | ||
28 | #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) | ||
29 | #define AR_KEY_CACHE_SIZE 128 | ||
30 | #define AR_RSVD_KEYTABLE_ENTRIES 4 | ||
31 | #define AR_KEY_TYPE 0x00000007 | ||
32 | #define AR_KEYTABLE_TYPE_40 0x00000000 | ||
33 | #define AR_KEYTABLE_TYPE_104 0x00000001 | ||
34 | #define AR_KEYTABLE_TYPE_128 0x00000003 | ||
35 | #define AR_KEYTABLE_TYPE_TKIP 0x00000004 | ||
36 | #define AR_KEYTABLE_TYPE_AES 0x00000005 | ||
37 | #define AR_KEYTABLE_TYPE_CCM 0x00000006 | ||
38 | #define AR_KEYTABLE_TYPE_CLR 0x00000007 | ||
39 | #define AR_KEYTABLE_ANT 0x00000008 | ||
40 | #define AR_KEYTABLE_VALID 0x00008000 | ||
41 | #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) | ||
42 | #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) | ||
43 | #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) | ||
44 | #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) | ||
45 | #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) | ||
46 | #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) | ||
47 | #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) | ||
48 | #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28) | ||
49 | |||
27 | #endif /* ATH_REGISTERS_H */ | 50 | #endif /* ATH_REGISTERS_H */ |