diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 7 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 2 |
6 files changed, 13 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index 5cc706a45e59..2a96a011f2ad 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1316,6 +1316,8 @@ static void rt2500pci_fill_rxdone(struct queue_entry *entry, | |||
1316 | 1316 | ||
1317 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) | 1317 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) |
1318 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; | 1318 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; |
1319 | else | ||
1320 | rxdesc->dev_flags |= RXDONE_SIGNAL_BITRATE; | ||
1319 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) | 1321 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) |
1320 | rxdesc->dev_flags |= RXDONE_MY_BSS; | 1322 | rxdesc->dev_flags |= RXDONE_MY_BSS; |
1321 | } | 1323 | } |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index c6be4dd81b1a..c5f49e36559a 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1280,6 +1280,8 @@ static void rt2500usb_fill_rxdone(struct queue_entry *entry, | |||
1280 | 1280 | ||
1281 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) | 1281 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) |
1282 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; | 1282 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; |
1283 | else | ||
1284 | rxdesc->dev_flags |= RXDONE_SIGNAL_BITRATE; | ||
1283 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) | 1285 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) |
1284 | rxdesc->dev_flags |= RXDONE_MY_BSS; | 1286 | rxdesc->dev_flags |= RXDONE_MY_BSS; |
1285 | 1287 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 5278ae2e374c..369b0b2d8643 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -653,7 +653,7 @@ void rt2x00lib_rxdone(struct rt2x00_dev *rt2x00dev, | |||
653 | 653 | ||
654 | if (((rxdesc.dev_flags & RXDONE_SIGNAL_PLCP) && | 654 | if (((rxdesc.dev_flags & RXDONE_SIGNAL_PLCP) && |
655 | (rate->plcp == rxdesc.signal)) || | 655 | (rate->plcp == rxdesc.signal)) || |
656 | (!(rxdesc.dev_flags & RXDONE_SIGNAL_PLCP) && | 656 | ((rxdesc.dev_flags & RXDONE_SIGNAL_BITRATE) && |
657 | (rate->bitrate == rxdesc.signal))) { | 657 | (rate->bitrate == rxdesc.signal))) { |
658 | idx = i; | 658 | idx = i; |
659 | break; | 659 | break; |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 654fa0c624d3..9dbf04f0f04c 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -140,13 +140,14 @@ static inline struct skb_frame_desc* get_skb_frame_desc(struct sk_buff *skb) | |||
140 | /** | 140 | /** |
141 | * enum rxdone_entry_desc_flags: Flags for &struct rxdone_entry_desc | 141 | * enum rxdone_entry_desc_flags: Flags for &struct rxdone_entry_desc |
142 | * | 142 | * |
143 | * @RXDONE_SIGNAL_PLCP: Does the signal field contain the plcp value, | 143 | * @RXDONE_SIGNAL_PLCP: Signal field contains the plcp value. |
144 | * or does it contain the bitrate itself. | 144 | * @RXDONE_SIGNAL_BITRATE: Signal field contains the bitrate value. |
145 | * @RXDONE_MY_BSS: Does this frame originate from device's BSS. | 145 | * @RXDONE_MY_BSS: Does this frame originate from device's BSS. |
146 | */ | 146 | */ |
147 | enum rxdone_entry_desc_flags { | 147 | enum rxdone_entry_desc_flags { |
148 | RXDONE_SIGNAL_PLCP = 1 << 0, | 148 | RXDONE_SIGNAL_PLCP = 1 << 0, |
149 | RXDONE_MY_BSS = 1 << 1, | 149 | RXDONE_SIGNAL_BITRATE = 1 << 1, |
150 | RXDONE_MY_BSS = 1 << 2, | ||
150 | }; | 151 | }; |
151 | 152 | ||
152 | /** | 153 | /** |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 52537101c908..d740f560ccd0 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -1991,6 +1991,8 @@ static void rt61pci_fill_rxdone(struct queue_entry *entry, | |||
1991 | 1991 | ||
1992 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) | 1992 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) |
1993 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; | 1993 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; |
1994 | else | ||
1995 | rxdesc->dev_flags |= RXDONE_SIGNAL_BITRATE; | ||
1994 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) | 1996 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) |
1995 | rxdesc->dev_flags |= RXDONE_MY_BSS; | 1997 | rxdesc->dev_flags |= RXDONE_MY_BSS; |
1996 | } | 1998 | } |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 636b4e0d0ef5..cf236ec533a9 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1766,6 +1766,8 @@ static void rt73usb_fill_rxdone(struct queue_entry *entry, | |||
1766 | 1766 | ||
1767 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) | 1767 | if (rt2x00_get_field32(word0, RXD_W0_OFDM)) |
1768 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; | 1768 | rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; |
1769 | else | ||
1770 | rxdesc->dev_flags |= RXDONE_SIGNAL_BITRATE; | ||
1769 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) | 1771 | if (rt2x00_get_field32(word0, RXD_W0_MY_BSS)) |
1770 | rxdesc->dev_flags |= RXDONE_MY_BSS; | 1772 | rxdesc->dev_flags |= RXDONE_MY_BSS; |
1771 | 1773 | ||