]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mt76: mt7921: fix firmware usage of RA info using legacy rates
authorSean Wang <sean.wang@mediatek.com>
Wed, 11 Aug 2021 05:58:24 +0000 (13:58 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:24 +0000 (09:48 +0100)
commitd3aa1ff0fe2aba772b2c5a0e2589853303069251
tree0238beeae48ac28d17bdbdd26ccd5caa4c311345
parent99ae512a5c1f46111a99095b2c7ac1f72c3321b1
mt76: mt7921: fix firmware usage of RA info using legacy rates

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 99b8e195994d9d77de3bfe0cb403c44a57c2cf79 ]

According to the firmware usage, OFDM rates should fill out bit 6 - 13
while CCK rates should fill out bit 0 - 3 in legacy field of RA info to
make the rate adaption runs propertly. Otherwise, a unicast frame might be
picking up the unsupported rate to send out.

Fixes: 1c099ab44727 ("mt76: mt7921: add MCU support")
Reported-by: Joshua Emele <jemele@chromium.org>
Co-developed-by: YN Chen <YN.Chen@mediatek.com>
Signed-off-by: YN Chen <YN.Chen@mediatek.com>
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h