diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-05-08 17:40:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-10 14:56:47 -0400 |
commit | 78b8f3b0ddb061af1e3907f9c4bca76eae39f79f (patch) | |
tree | 8147984c7ebc56696420fa0055442bcfe1314b5a /drivers/net/wireless/rt2x00/rt2800usb.c | |
parent | e6a8aab1648226d64772a8224df0677f555a5632 (diff) |
rt2x00: Don't check whether hardware crypto is enabled when reading RXD.
We should simply follow what the hardware told us it has done.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 94b68127811e..df7ad981b808 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -549,7 +549,6 @@ static void rt2800usb_kick_tx_queue(struct rt2x00_dev *rt2x00dev, | |||
549 | static void rt2800usb_fill_rxdone(struct queue_entry *entry, | 549 | static void rt2800usb_fill_rxdone(struct queue_entry *entry, |
550 | struct rxdone_entry_desc *rxdesc) | 550 | struct rxdone_entry_desc *rxdesc) |
551 | { | 551 | { |
552 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; | ||
553 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); | 552 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); |
554 | __le32 *rxi = (__le32 *)entry->skb->data; | 553 | __le32 *rxi = (__le32 *)entry->skb->data; |
555 | __le32 *rxwi; | 554 | __le32 *rxwi; |
@@ -595,11 +594,8 @@ static void rt2800usb_fill_rxdone(struct queue_entry *entry, | |||
595 | if (rt2x00_get_field32(rxd0, RXD_W0_CRC_ERROR)) | 594 | if (rt2x00_get_field32(rxd0, RXD_W0_CRC_ERROR)) |
596 | rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; | 595 | rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; |
597 | 596 | ||
598 | if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) { | 597 | rxdesc->cipher = rt2x00_get_field32(rxwi0, RXWI_W0_UDF); |
599 | rxdesc->cipher = rt2x00_get_field32(rxwi0, RXWI_W0_UDF); | 598 | rxdesc->cipher_status = rt2x00_get_field32(rxd0, RXD_W0_CIPHER_ERROR); |
600 | rxdesc->cipher_status = | ||
601 | rt2x00_get_field32(rxd0, RXD_W0_CIPHER_ERROR); | ||
602 | } | ||
603 | 599 | ||
604 | if (rt2x00_get_field32(rxd0, RXD_W0_DECRYPTED)) { | 600 | if (rt2x00_get_field32(rxd0, RXD_W0_DECRYPTED)) { |
605 | /* | 601 | /* |