]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7996: fix incorrect interpretation of EHT MCS caps
authorBenjamin Lin <benjamin-jw.lin@mediatek.com>
Fri, 26 Jan 2024 09:09:15 +0000 (17:09 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:33 +0000 (18:19 -0400)
commita1eb16a051a3625a10ba943e7193fadefe9b97a8
tree2d952626f997b99e84c1aafa6733b8810edf9888
parente6ed68cbace59ddae7eecad2be2113f3274239cc
wifi: mt76: mt7996: fix incorrect interpretation of EHT MCS caps

[ Upstream commit d52c97592f06552a4289008602b5d5b724084ba7 ]

The EHT MCS map subfield of 20 MHz-Only is not present in the EHT
capability of AP, so STA does not need to parse the subfield.
Moreover, AP should parse the subfield only if STA is 20 MHz-Only, which
can be confirmed by checking supported channel width in HE capability.

Fixes: 92aa2da9fa49 ("wifi: mt76: mt7996: enable EHT support in firmware")
Co-developed-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Benjamin Lin <benjamin-jw.lin@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c