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)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:58 +0000 (13:57 +0100)
commit66ca1a7b2d5503f561b751abdd6ec6fa96343eb6
tree1449ea66b21e997cad33a211ea65b59fe44bca2b
parentbf9727a27442a50c75b7d99a5088330c578b2a42
mt76: mt7921: set EDCA parameters with the MCU CE command

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>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c