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/rt61pci.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/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 8099ecaf8694..1b0c70d65699 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -1968,12 +1968,8 @@ static void rt61pci_fill_rxdone(struct queue_entry *entry, | |||
1968 | if (rt2x00_get_field32(word0, RXD_W0_CRC_ERROR)) | 1968 | if (rt2x00_get_field32(word0, RXD_W0_CRC_ERROR)) |
1969 | rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; | 1969 | rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; |
1970 | 1970 | ||
1971 | if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) { | 1971 | rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); |
1972 | rxdesc->cipher = | 1972 | rxdesc->cipher_status = rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR); |
1973 | rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); | ||
1974 | rxdesc->cipher_status = | ||
1975 | rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR); | ||
1976 | } | ||
1977 | 1973 | ||
1978 | if (rxdesc->cipher != CIPHER_NONE) { | 1974 | if (rxdesc->cipher != CIPHER_NONE) { |
1979 | _rt2x00_desc_read(entry_priv->desc, 2, &rxdesc->iv[0]); | 1975 | _rt2x00_desc_read(entry_priv->desc, 2, &rxdesc->iv[0]); |