]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8xxxu: Use lower tx rates for the ack packet
authorChris Chiu <chris.chiu@canonical.com>
Fri, 1 Oct 2021 04:00:44 +0000 (12:00 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 5 Oct 2021 05:33:05 +0000 (08:33 +0300)
commitd273fc7fb431a6b97aafd3352a050b9d14c4aa04
tree2274e00ff7e47b2990f0424074cf77cf14b4f4fe
parent1fd0c897d1a40ce15a7c39b958b71b3f3f3478a7
rtl8xxxu: Use lower tx rates for the ack packet

According to the Realtek propritary driver and the rtw88 driver, the
tx rates of the ack (includes block ack) are initialized with lower
tx rates (no HT rates) which is set by the RRSR register value. In
real cases, ack rate higher than current tx rate could lead to
difficulty for the receiving end to receive management/control frames.
The retransmission rate would be higher then expected when the driver
is acting as receiver and the RSSI is not good.

Cross out higer rates for ack packet before implementing dynamic rrsr
configuration like the commit 9f0f8d05eb30 ("rtw88: add dynamic rrsr
configuration").

Signed-off-by: Chris Chiu <chris.chiu@canonical.com>
Acked-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211001040044.1028708-1-chris.chiu@canonical.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h