linux/drivers/net/wireless/realtek
Bitterblue Smith 5368db4d7e wifi: rtl8xxxu: Use a longer retry limit of 48
commit 2a86aa9a18 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-03-10 09:29:43 +01:00
..
rtl8xxxu wifi: rtl8xxxu: Use a longer retry limit of 48 2023-03-10 09:29:43 +01:00
rtl818x wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
rtlwifi wifi: rtlwifi: Fix global-out-of-bounds bug in _rtl8812ae_phy_set_txpower_limit() 2023-03-10 09:28:02 +01:00
rtw88 wifi: rtw88: use RTW_FLAG_POWERON flag to prevent to power on/off twice 2023-03-10 09:29:43 +01:00
rtw89 wifi: rtw89: debug: avoid invalid access on RTW89_DBG_SEL_MAC_30 2023-03-10 09:29:13 +01:00
Kconfig rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00
Makefile rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00