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 18:56:36 +0000 (10:56 -0800)
commite6a159898766541f6ed3bb48fe45dbba19ffa7eb
tree2599a42d2781ef67d2a331463db734d7707a9ae6
parentb642081da4873e8fa3d7097076d2df9ba557d54e
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