aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c4
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index c7bd212656df..12331b15fe79 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -392,8 +392,8 @@ void rt2x00lib_rxdone(struct rt2x00_dev *rt2x00dev,
392 392
393 if (idx < 0) { 393 if (idx < 0) {
394 WARNING(rt2x00dev, "Frame received with unrecognized signal," 394 WARNING(rt2x00dev, "Frame received with unrecognized signal,"
395 "signal=0x%.2x, plcp=%d.\n", rxdesc.signal, 395 "signal=0x%.2x, type=%d.\n", rxdesc.signal,
396 !!(rxdesc.dev_flags & RXDONE_SIGNAL_PLCP)); 396 (rxdesc.dev_flags & RXDONE_SIGNAL_MASK));
397 idx = 0; 397 idx = 0;
398 } 398 }
399 399
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h
index 1bd1a952e42c..98209d2e93af 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.h
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.h
@@ -158,6 +158,14 @@ enum rxdone_entry_desc_flags {
158}; 158};
159 159
160/** 160/**
161 * RXDONE_SIGNAL_MASK - Define to mask off all &rxdone_entry_desc_flags flags
162 * except for the RXDONE_SIGNAL_* flags. This is useful to convert the dev_flags
163 * from &rxdone_entry_desc to a signal value type.
164 */
165#define RXDONE_SIGNAL_MASK \
166 ( RXDONE_SIGNAL_PLCP | RXDONE_SIGNAL_BITRATE )
167
168/**
161 * struct rxdone_entry_desc: RX Entry descriptor 169 * struct rxdone_entry_desc: RX Entry descriptor
162 * 170 *
163 * Summary of information that has been read from the RX frame descriptor. 171 * Summary of information that has been read from the RX frame descriptor.