aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
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]);