Skip to content

Commit 643c61e

Browse files
lwfingerlinvjw
authored andcommitted
rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: Fix low-gain setting when scanning
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> Cc: Stable <stable@vger.kernel.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 46470e5 commit 643c61e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ void rtl92c_phy_set_io(struct ieee80211_hw *hw)
18931893
break;
18941894
case IO_CMD_PAUSE_DM_BY_SCAN:
18951895
rtlphy->initgain_backup.xaagccore1 = dm_digtable.cur_igvalue;
1896-
dm_digtable.cur_igvalue = 0x17;
1896+
dm_digtable.cur_igvalue = 0x37;
18971897
rtl92c_dm_write_dig(hw);
18981898
break;
18991899
default:

‎drivers/net/wireless/rtlwifi/rtl8192de/phy.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ static void rtl92d_phy_set_io(struct ieee80211_hw *hw)
30773077
break;
30783078
case IO_CMD_PAUSE_DM_BY_SCAN:
30793079
rtlphy->initgain_backup.xaagccore1 = de_digtable.cur_igvalue;
3080-
de_digtable.cur_igvalue = 0x17;
3080+
de_digtable.cur_igvalue = 0x37;
30813081
rtl92d_dm_write_dig(hw);
30823082
break;
30833083
default:

0 commit comments

Comments
 (0)