mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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 <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
e87f4efc76
commit
0dfcc53a8e
+1
-1
@@ -1359,7 +1359,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) {
|
||||
|
||||
Reference in New Issue
Block a user