diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-12-02 16:50:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:35:56 -0500 |
commit | 74415edb042ef9f3b1291f978763687f35aadbb3 (patch) | |
tree | 395b690a7f5f0fdf0af97f5b6f922f8064770ab8 /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | 011a03300bdd60782f465b97c3aefd58bfaae316 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 90bf0b96caa3..30028e2422fc 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1330,6 +1330,8 @@ static void rt2500usb_fill_rxdone(struct queue_entry *entry, | |||
1330 | if (rxdesc->cipher != CIPHER_NONE) { | 1330 | if (rxdesc->cipher != CIPHER_NONE) { |
1331 | _rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]); | 1331 | _rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]); |
1332 | _rt2x00_desc_read(rxd, 3, &rxdesc->iv[1]); | 1332 | _rt2x00_desc_read(rxd, 3, &rxdesc->iv[1]); |
1333 | rxdesc->dev_flags |= RXDONE_CRYPTO_IV; | ||
1334 | |||
1333 | /* ICV is located at the end of frame */ | 1335 | /* ICV is located at the end of frame */ |
1334 | 1336 | ||
1335 | /* | 1337 | /* |