diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-09 17:49:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 19:32:31 -0400 |
commit | 89993890aeb8fe58b2d49b2661965524802ab73c (patch) | |
tree | d541a26a8a370401ef2c4d0cafdd8868853ed127 /drivers/net/wireless/rt2x00/rt2x00queue.h | |
parent | dac37d720860bbbc535adc90249184308501c1f0 (diff) |
rt2x00: Fix rt2400pci signal
After sampling hundreds of RX frame descriptors,
the results were conclusive:
- The Ralink documentation regarding the SIGNAL and RSSI are wrong.
It turns out that of the 5 BBR registers, we should not use BBR0 and BBR1
for SIGNAL and RSSI respectively, but actually BBR1 and BBR2.
BBR0 does show values, but the exact meaning remains unclear,
but they cannot be translated into a SIGNAL or RSSI field.
BBR3, BBR4 and BBR5 are always 0, so their meaning is unknown.
As it turns out, the reported SIGNAL is the PLCP value, this
in contradiction to what was expected looking at rt2500pci which
only reported the PLCP values for OFDM rates and bitrate values
for CCK rates.
This means we should let the driver raise the flag about the contents
of the SIGNAL field so rt2x00lib can always do the right thing based
on what the driver reports.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index fbabf389b622..c5f46f234083 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h | |||
@@ -134,6 +134,8 @@ static inline struct skb_frame_desc* get_skb_frame_desc(struct sk_buff *skb) | |||
134 | * Summary of information that has been read from the RX frame descriptor. | 134 | * Summary of information that has been read from the RX frame descriptor. |
135 | * | 135 | * |
136 | * @signal: Signal of the received frame. | 136 | * @signal: Signal of the received frame. |
137 | * @signal_plcp: Does the signal field contain the plcp value, | ||
138 | * or does it contain the bitrate itself. | ||
137 | * @rssi: RSSI of the received frame. | 139 | * @rssi: RSSI of the received frame. |
138 | * @ofdm: Was frame send with an OFDM rate. | 140 | * @ofdm: Was frame send with an OFDM rate. |
139 | * @size: Data size of the received frame. | 141 | * @size: Data size of the received frame. |
@@ -142,6 +144,7 @@ static inline struct skb_frame_desc* get_skb_frame_desc(struct sk_buff *skb) | |||
142 | */ | 144 | */ |
143 | struct rxdone_entry_desc { | 145 | struct rxdone_entry_desc { |
144 | int signal; | 146 | int signal; |
147 | int signal_plcp; | ||
145 | int rssi; | 148 | int rssi; |
146 | int ofdm; | 149 | int ofdm; |
147 | int size; | 150 | int size; |