diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-12-20 04:59:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:41 -0500 |
commit | b30dd5c043eda4b3d23659ef550c16ce4f6ecb47 (patch) | |
tree | feda7614c327fb3273766475eaf26785a894f4b0 /drivers/net/wireless/rt2x00/rt2x00queue.h | |
parent | 2bdb35c7ffb61f4b9d963dd447a2c54add5f02c5 (diff) |
rt2x00: Introduce RXDONE_SIGNAL_MASK mask
Improve error message reporting when a frame was received
with unknown rate. Instead of using the boolean check if
the frame is supposed to be a PLCP value or not, we should
add a new mask (RXDONE_SIGNAL_MASK) which returns the type
identification for a signal value (i.e. PLCP). At the moment
we only have 2 different types, but more will arrive when
support for 11n is added.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.h | 8 |
1 files changed, 8 insertions, 0 deletions
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. |