mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix iv and CCMP header insertion
The iv from RXD is only for TKIP_RSC/CCMP_PN/GCMP_PN, and it needs a check for CCMP header insertion. Move mt76_cipher_type to mt76.h to reduce duplicated code. Signed-off-by: Xing Song <[email protected]> Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+9
-9
@@ -692,15 +692,15 @@ struct mt76_wcid_key {
|
||||
} __packed __aligned(4);
|
||||
|
||||
enum mt76x02_cipher_type {
|
||||
MT_CIPHER_NONE,
|
||||
MT_CIPHER_WEP40,
|
||||
MT_CIPHER_WEP104,
|
||||
MT_CIPHER_TKIP,
|
||||
MT_CIPHER_AES_CCMP,
|
||||
MT_CIPHER_CKIP40,
|
||||
MT_CIPHER_CKIP104,
|
||||
MT_CIPHER_CKIP128,
|
||||
MT_CIPHER_WAPI,
|
||||
MT76X02_CIPHER_NONE,
|
||||
MT76X02_CIPHER_WEP40,
|
||||
MT76X02_CIPHER_WEP104,
|
||||
MT76X02_CIPHER_TKIP,
|
||||
MT76X02_CIPHER_AES_CCMP,
|
||||
MT76X02_CIPHER_CKIP40,
|
||||
MT76X02_CIPHER_CKIP104,
|
||||
MT76X02_CIPHER_CKIP128,
|
||||
MT76X02_CIPHER_WAPI,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user