]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rtw88: configure TX queue EDCA parameters
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 2 Oct 2019 06:35:27 +0000 (14:35 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 20 Mar 2020 21:31:25 +0000 (16:31 -0500)
commit78ea9941745b2fe0afa7c1f177ec881b7cb15390
tree0e05e577a8613b760f82e5e5da59df0ccfff43ed
parent7e8dc68d90a52868386c44d031d3f6b30d929902
rtw88: configure TX queue EDCA parameters

BugLink: https://bugs.launchpad.net/bugs/1780590
Set CWmax/CWmin, TXOP and AIFS according to ieee80211_tx_queue_params.

Do note that hardware has only one group of EDCA[ac] registers, if more
than one vif are added, the EDCA[ac] registers will contain value of
params of the most recent set by ieee80211_ops::conf_tx().

And AIFS = AIFSN[ac] * slot_time + SIFS, so if use_short_slot is changed,
need to also change AIFS.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit bf06c7ec45087066f638bddcccf6f0fd41903535)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/reg.h