rt2800usb: fix RX descriptor naming
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 8 Nov 2009 13:39:40 +0000 (14:39 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Nov 2009 22:09:15 +0000 (17:09 -0500)
Rename RXD_W0_* defines to RXINFO_W0_* ones to match naming
used for TX descriptor and by the vendor driver.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2800usb.h

index 67bae36ecddf70d7a9d5fcc7cff61f96905ddf2b..a6b0484d5816ea60c2aac0d2735b25493f396533 100644 (file)
@@ -594,16 +594,16 @@ static void rt2800usb_fill_rxdone(struct queue_entry *entry,
        rt2x00_desc_read(rxwi, 2, &rxwi2);
        rt2x00_desc_read(rxwi, 3, &rxwi3);
 
-       if (rt2x00_get_field32(rxd0, RXD_W0_CRC_ERROR))
+       if (rt2x00_get_field32(rxd0, RXINFO_W0_CRC_ERROR))
                rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC;
 
        if (test_bit(CONFIG_SUPPORT_HW_CRYPTO, &rt2x00dev->flags)) {
                rxdesc->cipher = rt2x00_get_field32(rxwi0, RXWI_W0_UDF);
                rxdesc->cipher_status =
-                   rt2x00_get_field32(rxd0, RXD_W0_CIPHER_ERROR);
+                   rt2x00_get_field32(rxd0, RXINFO_W0_CIPHER_ERROR);
        }
 
-       if (rt2x00_get_field32(rxd0, RXD_W0_DECRYPTED)) {
+       if (rt2x00_get_field32(rxd0, RXINFO_W0_DECRYPTED)) {
                /*
                 * Hardware has stripped IV/EIV data from 802.11 frame during
                 * decryption. Unfortunately the descriptor doesn't contain
@@ -618,10 +618,10 @@ static void rt2800usb_fill_rxdone(struct queue_entry *entry,
                        rxdesc->flags |= RX_FLAG_MMIC_ERROR;
        }
 
-       if (rt2x00_get_field32(rxd0, RXD_W0_MY_BSS))
+       if (rt2x00_get_field32(rxd0, RXINFO_W0_MY_BSS))
                rxdesc->dev_flags |= RXDONE_MY_BSS;
 
-       if (rt2x00_get_field32(rxd0, RXD_W0_L2PAD)) {
+       if (rt2x00_get_field32(rxd0, RXINFO_W0_L2PAD)) {
                rxdesc->dev_flags |= RXDONE_L2PAD;
                skbdesc->flags |= SKBDESC_L2_PADDED;
        }
index c9d7d40ee5fb1a32c230d66b378c1a525348e3cc..8f317446eca49feb214dc0da7dab625f6e80100b 100644 (file)
  * AMSDU: rx with 802.3 header, not 802.11 header.
  */
 
-#define RXD_W0_BA                      FIELD32(0x00000001)
-#define RXD_W0_DATA                    FIELD32(0x00000002)
-#define RXD_W0_NULLDATA                        FIELD32(0x00000004)
-#define RXD_W0_FRAG                    FIELD32(0x00000008)
-#define RXD_W0_UNICAST_TO_ME           FIELD32(0x00000010)
-#define RXD_W0_MULTICAST               FIELD32(0x00000020)
-#define RXD_W0_BROADCAST               FIELD32(0x00000040)
-#define RXD_W0_MY_BSS                  FIELD32(0x00000080)
-#define RXD_W0_CRC_ERROR               FIELD32(0x00000100)
-#define RXD_W0_CIPHER_ERROR            FIELD32(0x00000600)
-#define RXD_W0_AMSDU                   FIELD32(0x00000800)
-#define RXD_W0_HTC                     FIELD32(0x00001000)
-#define RXD_W0_RSSI                    FIELD32(0x00002000)
-#define RXD_W0_L2PAD                   FIELD32(0x00004000)
-#define RXD_W0_AMPDU                   FIELD32(0x00008000)
-#define RXD_W0_DECRYPTED               FIELD32(0x00010000)
-#define RXD_W0_PLCP_RSSI               FIELD32(0x00020000)
-#define RXD_W0_CIPHER_ALG              FIELD32(0x00040000)
-#define RXD_W0_LAST_AMSDU              FIELD32(0x00080000)
-#define RXD_W0_PLCP_SIGNAL             FIELD32(0xfff00000)
+#define RXINFO_W0_BA                   FIELD32(0x00000001)
+#define RXINFO_W0_DATA                 FIELD32(0x00000002)
+#define RXINFO_W0_NULLDATA             FIELD32(0x00000004)
+#define RXINFO_W0_FRAG                 FIELD32(0x00000008)
+#define RXINFO_W0_UNICAST_TO_ME                FIELD32(0x00000010)
+#define RXINFO_W0_MULTICAST            FIELD32(0x00000020)
+#define RXINFO_W0_BROADCAST            FIELD32(0x00000040)
+#define RXINFO_W0_MY_BSS               FIELD32(0x00000080)
+#define RXINFO_W0_CRC_ERROR            FIELD32(0x00000100)
+#define RXINFO_W0_CIPHER_ERROR         FIELD32(0x00000600)
+#define RXINFO_W0_AMSDU                        FIELD32(0x00000800)
+#define RXINFO_W0_HTC                  FIELD32(0x00001000)
+#define RXINFO_W0_RSSI                 FIELD32(0x00002000)
+#define RXINFO_W0_L2PAD                        FIELD32(0x00004000)
+#define RXINFO_W0_AMPDU                        FIELD32(0x00008000)
+#define RXINFO_W0_DECRYPTED            FIELD32(0x00010000)
+#define RXINFO_W0_PLCP_RSSI            FIELD32(0x00020000)
+#define RXINFO_W0_CIPHER_ALG           FIELD32(0x00040000)
+#define RXINFO_W0_LAST_AMSDU           FIELD32(0x00080000)
+#define RXINFO_W0_PLCP_SIGNAL          FIELD32(0xfff00000)
 
 #endif /* RT2800USB_H */