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)
commit5574d3290449916397f3092dcd2bac92415498e1
treec14988803a43963aac1f85e7b44f111b306da245
parenta8b5aef2cca15b7fa533421d462e4e0a3429bd6f
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: 26f1fad29ad9 ("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