]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7921: set EDCA parameters with the MCU CE command
authorSean Wang <sean.wang@mediatek.com>
Fri, 24 Dec 2021 08:33:56 +0000 (16:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:01 +0000 (13:58 +0200)
commitfb1d7f3b116bd7e2eb1d5c4ea4babc9a418a7d83
tree83885bac85910580802626ab0baba270e0258368
parent4c6456bf3181c57eb32ba97bc91d6339c3f569a9
mt76: mt7921: set EDCA parameters with the MCU CE command

[ Upstream commit 66ca1a7b2d5503f561b751abdd6ec6fa96343eb6 ]

The command MCU_EXT_CMD_EDCA_UPDATE is not fully supported by the MT7921
firmware, so we apply CE command MCU_CE_CMD_SET_EDCA_PARAMS instead which
is supported even in the oldest firmware to properly set up EDCA parameters
for each AC.

Fixes: 1c099ab44727 ("mt76: mt7921: add MCU support")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c