wifi: mt76: connac: fix EHT phy mode check
[platform/kernel/linux-starfive.git] / drivers / net / wireless / mediatek / mt76 / mt76_connac_mcu.c
index 8274a57..dc4fbab 100644 (file)
@@ -1347,7 +1347,7 @@ u8 mt76_connac_get_phy_mode_ext(struct mt76_phy *phy, struct ieee80211_vif *vif,
        sband = phy->hw->wiphy->bands[band];
        eht_cap = ieee80211_get_eht_iftype_cap(sband, vif->type);
 
-       if (!eht_cap || !eht_cap->has_eht)
+       if (!eht_cap || !eht_cap->has_eht || !vif->bss_conf.eht_support)
                return mode;
 
        switch (band) {