From: Greg Kroah-Hartman Date: Sun, 1 Dec 2013 18:28:15 +0000 (-0800) Subject: 3.12-stable patches X-Git-Tag: v3.4.72~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f2e9e66503ab98bae00215a9ffad26d3cb7f996;p=thirdparty%2Fkernel%2Fstable-queue.git 3.12-stable patches added patches: rtlwifi-rtl8192cu-fix-incorrect-signal-strength-for-unassociated-ap.patch rtlwifi-rtl8192de-fix-incorrect-signal-strength-for-unassociated-ap.patch rtlwifi-rtl8192se-fix-incorrect-signal-strength-for-unassociated-ap.patch --- diff --git a/queue-3.12/rtlwifi-rtl8192cu-fix-incorrect-signal-strength-for-unassociated-ap.patch b/queue-3.12/rtlwifi-rtl8192cu-fix-incorrect-signal-strength-for-unassociated-ap.patch new file mode 100644 index 00000000000..b5889daa8fd --- /dev/null +++ b/queue-3.12/rtlwifi-rtl8192cu-fix-incorrect-signal-strength-for-unassociated-ap.patch @@ -0,0 +1,33 @@ +From 78dbfecb95be4635b995af3bd29fa10013409fcd Mon Sep 17 00:00:00 2001 +From: Larry Finger +Date: Tue, 5 Nov 2013 15:15:29 -0600 +Subject: rtlwifi: rtl8192cu: Fix incorrect signal strength for unassociated AP + +From: Larry Finger + +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 +Signed-off-by: John W. Linville +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c ++++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +@@ -349,7 +349,7 @@ bool rtl92cu_rx_query_desc(struct ieee80 + 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; + } diff --git a/queue-3.12/rtlwifi-rtl8192de-fix-incorrect-signal-strength-for-unassociated-ap.patch b/queue-3.12/rtlwifi-rtl8192de-fix-incorrect-signal-strength-for-unassociated-ap.patch new file mode 100644 index 00000000000..b9a969db0fa --- /dev/null +++ b/queue-3.12/rtlwifi-rtl8192de-fix-incorrect-signal-strength-for-unassociated-ap.patch @@ -0,0 +1,33 @@ +From 3545f3d5f4af715c914394123ce7725a9cf0a1c4 Mon Sep 17 00:00:00 2001 +From: Larry Finger +Date: Tue, 5 Nov 2013 15:15:30 -0600 +Subject: rtlwifi: rtl8192de: Fix incorrect signal strength for unassociated AP + +From: Larry Finger + +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 +Signed-off-by: John W. Linville +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/rtlwifi/rtl8192de/trx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c ++++ b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c +@@ -525,7 +525,7 @@ bool rtl92de_rx_query_desc(struct ieee80 + 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; + } diff --git a/queue-3.12/rtlwifi-rtl8192se-fix-incorrect-signal-strength-for-unassociated-ap.patch b/queue-3.12/rtlwifi-rtl8192se-fix-incorrect-signal-strength-for-unassociated-ap.patch new file mode 100644 index 00000000000..3606110362e --- /dev/null +++ b/queue-3.12/rtlwifi-rtl8192se-fix-incorrect-signal-strength-for-unassociated-ap.patch @@ -0,0 +1,36 @@ +From b4ade797668e33b4e8353c2701ce01d7084dfafa Mon Sep 17 00:00:00 2001 +From: Larry Finger +Date: Tue, 5 Nov 2013 15:15:28 -0600 +Subject: rtlwifi: rtl8192se: Fix incorrect signal strength for unassociated AP + +From: Larry Finger + +commit b4ade797668e33b4e8353c2701ce01d7084dfafa 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. + +This patch fixes https://bugzilla.kernel.org/show_bug.cgi?id=63881. + +Signed-off-by: Larry Finger +Reported-by: Matthieu Baerts +Signed-off-by: John W. Linville +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/rtlwifi/rtl8192se/trx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/net/wireless/rtlwifi/rtl8192se/trx.c ++++ b/drivers/net/wireless/rtlwifi/rtl8192se/trx.c +@@ -329,7 +329,7 @@ bool rtl92se_rx_query_desc(struct ieee80 + } + + /*rx_status->qual = stats->signal; */ +- rx_status->signal = stats->rssi + 10; ++ rx_status->signal = stats->recvsignalpower + 10; + /*rx_status->noise = -stats->noise; */ + + return true; diff --git a/queue-3.12/series b/queue-3.12/series index 698c29978f9..047b46855a5 100644 --- a/queue-3.12/series +++ b/queue-3.12/series @@ -73,3 +73,6 @@ mtd-gpmi-fix-kernel-bug-due-to-racing-dma-operations.patch mtd-gpmi-fix-the-null-pointer.patch ext4-avoid-bh-leak-in-retry-path-of-ext4_expand_extra_isize_ea.patch xen-blkback-fix-reference-counting.patch +rtlwifi-rtl8192de-fix-incorrect-signal-strength-for-unassociated-ap.patch +rtlwifi-rtl8192se-fix-incorrect-signal-strength-for-unassociated-ap.patch +rtlwifi-rtl8192cu-fix-incorrect-signal-strength-for-unassociated-ap.patch