rt2x00: Implement HW encryption (rt2500usb)
rt2500usb supports hardware encryption. rt2500usb supports up to 4 shared and pairwise keys. 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
0b927a0791
commit
dddfb478b2
@@ -420,8 +420,12 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb)
|
||||
* the frame so we can provide it to the driver seperately.
|
||||
*/
|
||||
if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc.flags) &&
|
||||
!test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags))
|
||||
rt2x00crypto_tx_remove_iv(skb, iv_len);
|
||||
!test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags)) {
|
||||
if (test_bit(CONFIG_CRYPTO_COPY_IV, &queue->rt2x00dev->flags))
|
||||
rt2x00crypto_tx_copy_iv(skb, iv_len);
|
||||
else
|
||||
rt2x00crypto_tx_remove_iv(skb, iv_len);
|
||||
}
|
||||
|
||||
/*
|
||||
* It could be possible that the queue was corrupted and this
|
||||
|
||||
Reference in New Issue
Block a user