aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.c10
-rw-r--r--drivers/net/wireless/rt2x00/rt2800usb.h40
2 files changed, 25 insertions, 25 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c
index 67bae36ecddf..a6b0484d5816 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -594,16 +594,16 @@ static void rt2800usb_fill_rxdone(struct queue_entry *entry,
594 rt2x00_desc_read(rxwi, 2, &rxwi2); 594 rt2x00_desc_read(rxwi, 2, &rxwi2);
595 rt2x00_desc_read(rxwi, 3, &rxwi3); 595 rt2x00_desc_read(rxwi, 3, &rxwi3);
596 596
597 if (rt2x00_get_field32(rxd0, RXD_W0_CRC_ERROR)) 597 if (rt2x00_get_field32(rxd0, RXINFO_W0_CRC_ERROR))
598 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; 598 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC;
599 599
600 if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) { 600 if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) {
601 rxdesc->cipher = rt2x00_get_field32(rxwi0, RXWI_W0_UDF); 601 rxdesc->cipher = rt2x00_get_field32(rxwi0, RXWI_W0_UDF);
602 rxdesc->cipher_status = 602 rxdesc->cipher_status =
603 rt2x00_get_field32(rxd0, RXD_W0_CIPHER_ERROR); 603 rt2x00_get_field32(rxd0, RXINFO_W0_CIPHER_ERROR);
604 } 604 }
605 605
606 if (rt2x00_get_field32(rxd0, RXD_W0_DECRYPTED)) { 606 if (rt2x00_get_field32(rxd0, RXINFO_W0_DECRYPTED)) {
607 /* 607 /*
608 * Hardware has stripped IV/EIV data from 802.11 frame during 608 * Hardware has stripped IV/EIV data from 802.11 frame during
609 * decryption. Unfortunately the descriptor doesn't contain 609 * decryption. Unfortunately the descriptor doesn't contain
@@ -618,10 +618,10 @@ static void rt2800usb_fill_rxdone(struct queue_entry *entry,
618 rxdesc->flags |= RX_FLAG_MMIC_ERROR; 618 rxdesc->flags |= RX_FLAG_MMIC_ERROR;
619 } 619 }
620 620
621 if (rt2x00_get_field32(rxd0, RXD_W0_MY_BSS)) 621 if (rt2x00_get_field32(rxd0, RXINFO_W0_MY_BSS))
622 rxdesc->dev_flags |= RXDONE_MY_BSS; 622 rxdesc->dev_flags |= RXDONE_MY_BSS;
623 623
624 if (rt2x00_get_field32(rxd0, RXD_W0_L2PAD)) { 624 if (rt2x00_get_field32(rxd0, RXINFO_W0_L2PAD)) {
625 rxdesc->dev_flags |= RXDONE_L2PAD; 625 rxdesc->dev_flags |= RXDONE_L2PAD;
626 skbdesc->flags |= SKBDESC_L2_PADDED; 626 skbdesc->flags |= SKBDESC_L2_PADDED;
627 } 627 }
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.h b/drivers/net/wireless/rt2x00/rt2800usb.h
index c9d7d40ee5fb..8f317446eca4 100644
--- a/drivers/net/wireless/rt2x00/rt2800usb.h
+++ b/drivers/net/wireless/rt2x00/rt2800usb.h
@@ -111,25 +111,25 @@
111 * AMSDU: rx with 802.3 header, not 802.11 header. 111 * AMSDU: rx with 802.3 header, not 802.11 header.
112 */ 112 */
113 113
114#define RXD_W0_BA FIELD32(0x00000001) 114#define RXINFO_W0_BA FIELD32(0x00000001)
115#define RXD_W0_DATA FIELD32(0x00000002) 115#define RXINFO_W0_DATA FIELD32(0x00000002)
116#define RXD_W0_NULLDATA FIELD32(0x00000004) 116#define RXINFO_W0_NULLDATA FIELD32(0x00000004)
117#define RXD_W0_FRAG FIELD32(0x00000008) 117#define RXINFO_W0_FRAG FIELD32(0x00000008)
118#define RXD_W0_UNICAST_TO_ME FIELD32(0x00000010) 118#define RXINFO_W0_UNICAST_TO_ME FIELD32(0x00000010)
119#define RXD_W0_MULTICAST FIELD32(0x00000020) 119#define RXINFO_W0_MULTICAST FIELD32(0x00000020)
120#define RXD_W0_BROADCAST FIELD32(0x00000040) 120#define RXINFO_W0_BROADCAST FIELD32(0x00000040)
121#define RXD_W0_MY_BSS FIELD32(0x00000080) 121#define RXINFO_W0_MY_BSS FIELD32(0x00000080)
122#define RXD_W0_CRC_ERROR FIELD32(0x00000100) 122#define RXINFO_W0_CRC_ERROR FIELD32(0x00000100)
123#define RXD_W0_CIPHER_ERROR FIELD32(0x00000600) 123#define RXINFO_W0_CIPHER_ERROR FIELD32(0x00000600)
124#define RXD_W0_AMSDU FIELD32(0x00000800) 124#define RXINFO_W0_AMSDU FIELD32(0x00000800)
125#define RXD_W0_HTC FIELD32(0x00001000) 125#define RXINFO_W0_HTC FIELD32(0x00001000)
126#define RXD_W0_RSSI FIELD32(0x00002000) 126#define RXINFO_W0_RSSI FIELD32(0x00002000)
127#define RXD_W0_L2PAD FIELD32(0x00004000) 127#define RXINFO_W0_L2PAD FIELD32(0x00004000)
128#define RXD_W0_AMPDU FIELD32(0x00008000) 128#define RXINFO_W0_AMPDU FIELD32(0x00008000)
129#define RXD_W0_DECRYPTED FIELD32(0x00010000) 129#define RXINFO_W0_DECRYPTED FIELD32(0x00010000)
130#define RXD_W0_PLCP_RSSI FIELD32(0x00020000) 130#define RXINFO_W0_PLCP_RSSI FIELD32(0x00020000)
131#define RXD_W0_CIPHER_ALG FIELD32(0x00040000) 131#define RXINFO_W0_CIPHER_ALG FIELD32(0x00040000)
132#define RXD_W0_LAST_AMSDU FIELD32(0x00080000) 132#define RXINFO_W0_LAST_AMSDU FIELD32(0x00080000)
133#define RXD_W0_PLCP_SIGNAL FIELD32(0xfff00000) 133#define RXINFO_W0_PLCP_SIGNAL FIELD32(0xfff00000)
134 134
135#endif /* RT2800USB_H */ 135#endif /* RT2800USB_H */