wifi: mt76: connac: fix EHT phy mode check
authorMeiChia Chiu <meichia.chiu@mediatek.com>
Thu, 2 Nov 2023 10:03:02 +0000 (18:03 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 7 Dec 2023 17:50:21 +0000 (18:50 +0100)
commit2c2f50bf6407e1fd43a1a257916aeaa5ffdacd6c
treec83e216ffe381b76aff0cea43d71bb84e4eef287
parenteb80e02b2c03141460749d3800126e2cdb674c9e
wifi: mt76: connac: fix EHT phy mode check

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