rt2x00: Add RXDONE_CRYPTO_IV/ICV flags
Drivers should notify rt2x00lib when they provide the IV/ICV data. This adds some flexibility to drivers which can't provide all information. * rt2500usb provides ICV inside the frame * rt2800pci doesn't provide IV/ICV * rt2800usb doesn't provide IV/ICV 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
011a03300b
commit
74415edb04
@@ -1620,7 +1620,10 @@ static void rt73usb_fill_rxdone(struct queue_entry *entry,
|
||||
if (rxdesc->cipher != CIPHER_NONE) {
|
||||
_rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]);
|
||||
_rt2x00_desc_read(rxd, 3, &rxdesc->iv[1]);
|
||||
rxdesc->dev_flags |= RXDONE_CRYPTO_IV;
|
||||
|
||||
_rt2x00_desc_read(rxd, 4, &rxdesc->icv);
|
||||
rxdesc->dev_flags |= RXDONE_CRYPTO_ICV;
|
||||
|
||||
/*
|
||||
* Hardware has stripped IV/EIV data from 802.11 frame during
|
||||
|
Reference in New Issue
Block a user