diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-08-04 10:37:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:58 -0400 |
commit | 2bb057d07a0bc17475a7bf897fc41667ab08b73f (patch) | |
tree | 55461e52caa34a45a67aaf9e3f1c608f96c77d59 /drivers/net/wireless/rt2x00/rt2x00reg.h | |
parent | 8e7cdbb6333ef7654e708bd60e50a123688dcd7b (diff) |
rt2x00: Implement HW encryption
Various rt2x00 devices support hardware encryption.
Most of them require the IV/EIV to be generated by mac80211,
but require it to be provided seperately instead of within
the frame itself. This means that rt2x00lib should extract
the data from the frame and place it in the frame descriptor.
During RX the IV/EIV is provided in the descriptor by the
hardware which means that it should be inserted into the
frame by rt2x00lib.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00reg.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00reg.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00reg.h b/drivers/net/wireless/rt2x00/rt2x00reg.h index 7e88ce5651b9..6d5acf99a1c5 100644 --- a/drivers/net/wireless/rt2x00/rt2x00reg.h +++ b/drivers/net/wireless/rt2x00/rt2x00reg.h | |||
@@ -27,6 +27,16 @@ | |||
27 | #define RT2X00REG_H | 27 | #define RT2X00REG_H |
28 | 28 | ||
29 | /* | 29 | /* |
30 | * RX crypto status | ||
31 | */ | ||
32 | enum rx_crypto { | ||
33 | RX_CRYPTO_SUCCESS = 0, | ||
34 | RX_CRYPTO_FAIL_ICV = 1, | ||
35 | RX_CRYPTO_FAIL_MIC = 2, | ||
36 | RX_CRYPTO_FAIL_KEY = 3, | ||
37 | }; | ||
38 | |||
39 | /* | ||
30 | * Antenna values | 40 | * Antenna values |
31 | */ | 41 | */ |
32 | enum antenna { | 42 | enum antenna { |
@@ -104,7 +114,14 @@ enum cipher { | |||
104 | */ | 114 | */ |
105 | CIPHER_CKIP64 = 5, | 115 | CIPHER_CKIP64 = 5, |
106 | CIPHER_CKIP128 = 6, | 116 | CIPHER_CKIP128 = 6, |
107 | CIPHER_TKIP_NO_MIC = 7, | 117 | CIPHER_TKIP_NO_MIC = 7, /* Don't send to device */ |
118 | |||
119 | /* | ||
120 | * Max cipher type. | ||
121 | * Note that CIPHER_NONE isn't counted, and CKIP64 and CKIP128 | ||
122 | * are excluded due to limitations in mac80211. | ||
123 | */ | ||
124 | CIPHER_MAX = 4, | ||
108 | }; | 125 | }; |
109 | 126 | ||
110 | /* | 127 | /* |