android_kernel_xiaomi_sdm845/drivers/net/wireless/rt2x00
Ivo van Doorn 89993890ae 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>
2008-03-13 19:32:31 -04:00
..
Kconfig rt2x00: Move firmware checksumming to driver 2008-03-13 16:02:36 -04:00
Makefile rt2x00: Cleanup Makefile 2008-02-29 15:37:21 -05:00
rt2x00.h rt2x00: Fix basic rate initialization 2008-03-13 19:31:42 -04:00
rt2x00config.c rt2x00: Fix basic rate initialization 2008-03-13 19:31:42 -04:00
rt2x00debug.c rt2x00: Upgrade queue->lock to use irqsave 2008-03-13 16:02:35 -04:00
rt2x00debug.h rt2x00: Update copyright notice 2008-02-29 15:19:22 -05:00
rt2x00dev.c rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2x00dump.h rt2x00: Queue handling overhaul 2008-02-29 15:19:27 -05:00
rt2x00firmware.c rt2x00: Move firmware checksumming to driver 2008-03-13 16:02:36 -04:00
rt2x00leds.c rt2x00: Make rt2x00leds_register return void 2008-03-13 19:31:41 -04:00
rt2x00leds.h rt2x00: Enable LED class support for rt2500usb/rt73usb 2008-02-29 15:37:00 -05:00
rt2x00lib.h rt2x00: Fix basic rate initialization 2008-03-13 19:31:42 -04:00
rt2x00mac.c rt2x00: Rename config_preamble() to config_erp() 2008-03-13 16:02:36 -04:00
rt2x00pci.c rt2x00: Initialize TX control field in data entries 2008-03-13 16:02:33 -04:00
rt2x00pci.h rt2x00: Fix Descriptor DMA initialization 2008-02-29 15:37:22 -05:00
rt2x00queue.c rt2x00: Upgrade queue->lock to use irqsave 2008-03-13 16:02:35 -04:00
rt2x00queue.h rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2x00reg.h rt2x00: Rate structure overhaul 2008-02-29 15:19:38 -05:00
rt2x00rfkill.c rt2x00: Update copyright notice 2008-02-29 15:19:22 -05:00
rt2x00usb.c rt2x00:correct rx packet length for USB devices 2008-03-13 16:02:35 -04:00
rt2x00usb.h rt2x00: Remove async vendor request calls from rt2x00usb 2008-02-29 15:37:24 -05:00
rt61pci.c rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt61pci.h rt2x00: Fix MAC address defines in rt61pci 2008-02-29 15:37:25 -05:00
rt73usb.c rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt73usb.h rt2x00: Rename dscape -> mac80211 2008-02-29 15:37:23 -05:00
rt2400pci.c rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2400pci.h rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2500pci.c rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2500pci.h rt2x00: Rename dscape -> mac80211 2008-02-29 15:37:23 -05:00
rt2500usb.c rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2500usb.h rt2x00: Rename dscape -> mac80211 2008-02-29 15:37:23 -05:00