rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: Fix low-gain setting when scanning
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 26 Mar 2012 14:59:48 +0000 (09:59 -0500)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:00 +0000 (19:15 +0100)
commit071ae57b0266ac9fe2ed8b874b4b8983519a7977
treeb3217e2eeef5d7cc1485e9696314fb5d99d76986
parent5a9a2c34a3f4c4c9a3064e307a11ed2abbbbc369
rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: Fix low-gain setting when scanning

BugLink: http://bugs.launchpad.net/bugs/981162

commit 643c61e119459e9d750087b7b34be94491efebf9 upstream.

In https://bugzilla.redhat.com/show_bug.cgi?id=770207, slowdowns of driver
rtl8192ce are reported. One fix (commit a9b89e2) has already been applied,
and it helped, but the maximum RX speed would still drop to 1 Mbps. As in
the previous fix, the initial gain was determined to be the problem; however,
the problem arises from a setting of the gain when scans are started.

Driver rtl8192de also has the same code structure - this one is fixed as well.

Reported-and-Tested-by: Ivan Pesin <ivan.pesin@gmail.com>
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>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c
drivers/net/wireless/rtlwifi/rtl8192de/phy.c