Skip to content

Commit 51ba40f

Browse files
lwfingergregkh
authored andcommitted
rtlwifi: rtl8821ae: Fix connection lost problem
commit b8b8b16352cd90c6083033fd4487f04fae935c18 upstream. In commit 40b368af4b75 ("rtlwifi: Fix alignment issues"), the read of REG_DBI_READ was changed from 16 to 8 bits. For unknown reasonsi this change results in reduced stability for the wireless connection. This regression was located using bisection. Fixes: 40b368af4b75 ("rtlwifi: Fix alignment issues") Reported-and-tested-by: James Cameron <quozl@laptop.org> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent cffdaa6 commit 51ba40f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/wireless/realtek/rtlwifi/rtl8821ae

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ static u8 _rtl8821ae_dbi_read(struct rtl_priv *rtlpriv, u16 addr)
11271127
}
11281128
if (0 == tmp) {
11291129
read_addr = REG_DBI_RDATA + addr % 4;
1130-
ret = rtl_read_byte(rtlpriv, read_addr);
1130+
ret = rtl_read_word(rtlpriv, read_addr);
11311131
}
11321132
return ret;
11331133
}

0 commit comments

Comments
 (0)