]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: rtl8xxxu: Fix AIFS written to REG_EDCA_*_PARAM
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sun, 18 Sep 2022 12:42:25 +0000 (15:42 +0300)
committerKalle Valo <kvalo@kernel.org>
Thu, 29 Sep 2022 06:18:41 +0000 (09:18 +0300)
commit57cfa39d3addd41ae10a58c4a4a4647711c13244
treec14988803a43963aac1f85e7b44f111b306da245
parentf2e663048c0280f3dd48358c11e16dd7c72d871e
wifi: rtl8xxxu: Fix AIFS written to REG_EDCA_*_PARAM

ieee80211_tx_queue_params.aifs is not supposed to be written directly
to the REG_EDCA_*_PARAM registers. Instead process it like the vendor
drivers do. It's kinda hacky but it works.

This change boosts the download speed and makes it more stable.

Tested with RTL8188FU but all the other supported chips should also
benefit.

Fixes: 08b253d81906 ("New driver: rtl8xxxu (mac80211)")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Jes Sorensen <jes@trained-monkey.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/038cc03f-3567-77ba-a7bd-c4930e3b2fad@gmail.com
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c