p54: better rssi->dbm conversion for longbow phys
authorChristian Lamparter <chunkeey@googlemail.com>
Tue, 24 Aug 2010 21:29:05 +0000 (23:29 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:34:56 +0000 (14:34 -0400)
commit45f7e3116fad77e6dd15cb0e2eaccb7de7b806c9
treebd1b652a84a8bf37eb941aa50719b3aab833ee60
parent2c15a0cf27a74213a714cc7be31685b841f7c1ac
p54: better rssi->dbm conversion for longbow phys

This patch should fix the dodgy signal and noise value
reports for most longbow (p54spi) users:

e.g.: (an older tcpdump extract)
> 2.0 Mb/s 2437 MHz (0x00a0) -49dB signal -41dB noise
> 1.0 Mb/s 2437 MHz (0x00a0) 4dB signal -41dB noise

The formula is taken from stlc45xx:
http://gitorious.org/stlc45xx/mainline/blobs/master/stlc45xx.c#line1199

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/txrx.c