linux/drivers/net/wireless/realtek/rtl8xxxu
Bitterblue Smith 2a86aa9a18 wifi: rtl8xxxu: Use a longer retry limit of 48
The Realtek rate control algorithm goes back and forth a lot between
the highest and the lowest rate it's allowed to use. This is due to
a lot of frames being dropped because the retry limits set by
IEEE80211_CONF_CHANGE_RETRY_LIMITS are too low. (Experimentally, they
are 4 for long frames and 7 for short frames.)

The vendor drivers hardcode the value 48 for both retry limits (for
station mode), which makes dropped frames very rare and thus the rate
control is more stable.

Because most Realtek chips handle the rate control in the firmware,
which can't be modified, ignore the limits set by
IEEE80211_CONF_CHANGE_RETRY_LIMITS and use the value 48 (set during
chip initialisation), same as the vendor drivers.

Cc: stable@vger.kernel.org
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/477d745b-6bac-111d-403c-487fc19aa30d@gmail.com
2023-01-16 18:27:05 +02:00
..
Kconfig wifi: rtl8xxxu: Support new chip RTL8188EU 2022-12-21 20:51:40 +02:00
Makefile wifi: rtl8xxxu: Support new chip RTL8188EU 2022-12-21 20:51:40 +02:00
rtl8xxxu_8188e.c wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00
rtl8xxxu_8188f.c wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00
rtl8xxxu_8192c.c wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00
rtl8xxxu_8192e.c wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00
rtl8xxxu_8723a.c wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00
rtl8xxxu_8723b.c wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00
rtl8xxxu_core.c wifi: rtl8xxxu: Use a longer retry limit of 48 2023-01-16 18:27:05 +02:00
rtl8xxxu_regs.h wifi: rtl8xxxu: Support new chip RTL8188EU 2022-12-21 20:51:40 +02:00
rtl8xxxu.h wifi: rtl8xxxu: Report the RSSI to the firmware 2023-01-16 18:27:05 +02:00