aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2010-05-08 17:40:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-10 14:56:47 -0400
commit78b8f3b0ddb061af1e3907f9c4bca76eae39f79f (patch)
tree8147984c7ebc56696420fa0055442bcfe1314b5a /drivers/net/wireless/rt2x00/rt2500usb.c
parente6a8aab1648226d64772a8224df0677f555a5632 (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/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index c6e6e7b0ea53..f90b308899aa 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -1213,11 +1213,9 @@ static void rt2500usb_fill_rxdone(struct queue_entry *entry,
1213 if (rt2x00_get_field32(word0, RXD_W0_PHYSICAL_ERROR)) 1213 if (rt2x00_get_field32(word0, RXD_W0_PHYSICAL_ERROR))
1214 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC; 1214 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC;
1215 1215
1216 if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) { 1216 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER);
1217 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER); 1217 if (rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR))
1218 if (rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR)) 1218 rxdesc->cipher_status = RX_CRYPTO_FAIL_KEY;
1219 rxdesc->cipher_status = RX_CRYPTO_FAIL_KEY;
1220 }
1221 1219
1222 if (rxdesc->cipher != CIPHER_NONE) { 1220 if (rxdesc->cipher != CIPHER_NONE) {
1223 _rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]); 1221 _rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]);