rtlwifi: rtl8192cu: Fix incorrect signal strength for unassociated AP
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 5 Nov 2013 21:15:29 +0000 (15:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 19:05:26 +0000 (11:05 -0800)
commitf9a7e9f57556cdbce8bf55379676083579f631da
tree24dda229df7b5c6c19410e64548948a9469c22d6
parent6c72ff6cc945d02486dea16c9ea2e32877a967c5
rtlwifi: rtl8192cu: Fix incorrect signal strength for unassociated AP

commit 78dbfecb95be4635b995af3bd29fa10013409fcd upstream.

The routine that processes received frames was returning the RSSI value for the
signal strength; however, that value is available only for associated APs. As
a result, the strength was the absurd value of 10 dBm. As a result, scans
return incorrect values for the strength, which causes unwanted attempts to roam.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c