linux_old1/drivers/net/wireless/rt2x00
Luigi Tarenga 7fc4175564 rt2800lib: fix wrong -128dBm when signal is stronger than -12dBm
This patch correct the type of variables containing the rssi
values read from the rxwi.

In function rt2800_agc_to_rssi() 3 variables (rssi0, rssi1, rss2)
defined as int was assigned a 16bit signed values as unsigned.
From a test with a hi-gain antenna I verified that the rxwi
contains signed rssi values in the  range -13/+81 (inclusive)
with 0 as an error condition. In case of negative values a
condition is triggered and the function return -128dBm while
the signal is at its maximum. This patch correct the cast so
negative values are not treated as very high positive values
(ex. -13 does not become 243).

Signed-off-by: Luigi Tarenga <luigi.tarenga@gmail.com>
Reviewed-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-02-01 15:25:59 -05:00
..
Kconfig rt2x00: Enabled rt35xx device support by default. 2011-06-01 15:10:59 -04:00
Makefile
rt2x00.h rt2x00: RT3593 is also applicable to USB. 2012-01-04 14:31:46 -05:00
rt2x00config.c rt2x00: fix rmmod crash 2011-06-06 15:24:18 -04:00
rt2x00crypto.c rt2x00: Don't use queue entry as parameter when creating TX descriptor. 2011-07-07 13:20:58 -04:00
rt2x00debug.c
rt2x00debug.h
rt2x00dev.c rt2x00: Use kcalloc instead of kzalloc to allocate array 2011-12-06 16:02:51 -05:00
rt2x00dump.h
rt2x00firmware.c
rt2x00leds.c
rt2x00leds.h
rt2x00lib.h rt2x00: Fix compilation without CONFIG_RT2X00_LIB_CRYPTO 2011-08-02 13:48:14 -04:00
rt2x00link.c
rt2x00mac.c rt2x00: Make use of ieee80211_free_txskb in tx path 2011-12-14 14:50:11 -05:00
rt2x00pci.c
rt2x00pci.h
rt2x00queue.c rt2x00: Add WCID to HT TX descriptor 2011-09-14 13:56:56 -04:00
rt2x00queue.h rt2x00: Add WCID to HT TX descriptor 2011-09-14 13:56:56 -04:00
rt2x00reg.h
rt2x00soc.c
rt2x00soc.h
rt2x00usb.c rt2x00usb: Zero USB padding before sending URB 2012-01-04 14:31:46 -05:00
rt2x00usb.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-05 13:32:35 -04:00
rt61pci.c module_param: make bool parameters really bool (net & drivers/net) 2011-12-19 22:27:29 -05:00
rt61pci.h
rt73usb.c Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core 2012-01-07 12:03:30 -08:00
rt73usb.h
rt2400pci.c Revert "rt2x00: handle spurious pci interrupts" 2011-11-22 16:36:35 -05:00
rt2400pci.h
rt2500pci.c Revert "rt2x00: handle spurious pci interrupts" 2011-11-22 16:36:35 -05:00
rt2500pci.h
rt2500usb.c Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core 2012-01-07 12:03:30 -08:00
rt2500usb.h
rt2800.h rt2x00: Change RF3853 to RF3053. 2012-01-04 14:31:46 -05:00
rt2800lib.c rt2800lib: fix wrong -128dBm when signal is stronger than -12dBm 2012-02-01 15:25:59 -05:00
rt2800lib.h mac80211: pass vif param to conf_tx() callback 2011-10-03 15:22:41 -04:00
rt2800pci.c rt2800pci: fix spurious interrupts generation 2012-01-13 14:40:57 -05:00
rt2800pci.h
rt2800usb.c Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core 2012-01-07 12:03:30 -08:00
rt2800usb.h