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>
This commit is contained in:
committed by
John W. Linville
parent
8e7cdbb633
commit
2bb057d07a
@ -26,6 +26,16 @@
|
||||
#ifndef RT2X00REG_H
|
||||
#define RT2X00REG_H
|
||||
|
||||
/*
|
||||
* RX crypto status
|
||||
*/
|
||||
enum rx_crypto {
|
||||
RX_CRYPTO_SUCCESS = 0,
|
||||
RX_CRYPTO_FAIL_ICV = 1,
|
||||
RX_CRYPTO_FAIL_MIC = 2,
|
||||
RX_CRYPTO_FAIL_KEY = 3,
|
||||
};
|
||||
|
||||
/*
|
||||
* Antenna values
|
||||
*/
|
||||
@ -104,7 +114,14 @@ enum cipher {
|
||||
*/
|
||||
CIPHER_CKIP64 = 5,
|
||||
CIPHER_CKIP128 = 6,
|
||||
CIPHER_TKIP_NO_MIC = 7,
|
||||
CIPHER_TKIP_NO_MIC = 7, /* Don't send to device */
|
||||
|
||||
/*
|
||||
* Max cipher type.
|
||||
* Note that CIPHER_NONE isn't counted, and CKIP64 and CKIP128
|
||||
* are excluded due to limitations in mac80211.
|
||||
*/
|
||||
CIPHER_MAX = 4,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user