diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-11-06 01:15:30 +0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-01-03 08:33:20 +0400 |
commit | 0b778af8a6a94450f86195fafc37724bac8f8282 (patch) | |
tree | d4aff33d50e90ec266710d6844f2339c78ae0136 | |
parent | 44025275e695973553af7b2a1a60f11ba913752c (diff) | |
download | linux-0b778af8a6a94450f86195fafc37724bac8f8282.tar.xz |
rtlwifi: rtl8192de: Fix incorrect signal strength for unassociated AP
commit 3545f3d5f4af715c914394123ce7725a9cf0a1c4 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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/trx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c index 3637c0c33525..639b57b62cca 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c @@ -529,7 +529,7 @@ bool rtl92de_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats, p_drvinfo); } /*rx_status->qual = stats->signal; */ - rx_status->signal = stats->rssi + 10; + rx_status->signal = stats->recvsignalpower + 10; /*rx_status->noise = -stats->noise; */ return true; } |