]> 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)
commitfcb118e1d5fd346b0784eb473851fe1fbdb709a7
tree2274e00ff7e47b2990f0424074cf77cf14b4f4fe
parentd2abc9b7e8c218b2c7a92edb79c7f6ea36d50525
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 d9deadf3e6ad ("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