wifi: mt76: connac: fix EHT phy mode check

[ Upstream commit 2c2f50bf64 ]

Add a BSS eht_support check before returning EHT phy mode. Without this
patch, there might be an inconsistency where the softmac layer thinks
the BSS is in HE mode, while the FW thinks it is in EHT mode.

Signed-off-by: MeiChia Chiu <meichia.chiu@mediatek.com>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
MeiChia Chiu 2023-11-02 18:03:02 +08:00 • committed by Greg Kroah-Hartman
commit c4139d2fae