Skip to content

Commit 3a45005

Browse files
leon-yenmuteebakram
authored andcommitted
NVIDIA: SAUCE: wifi: mt76: mt7925: Fix incorrect MLO mode in firmware control
The selection of MLO mode should depend on the capabilities of the STA rather than those of the peer AP to avoid compatibility issues with certain APs, such as Xiaomi BE5000 WiFi7 router. Fixes: 69acd6d ("wifi: mt76: mt7925: add mt7925_change_vif_links") Signed-off-by: Leon Yen <leon.yen@mediatek.com> Signed-off-by: Muteeb Akram <mdoctor@nvidia.com>
1 parent 6a9a932 commit 3a45005

File tree

1 file changed

+4
-1
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7925

1 file changed

+4
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt7925/mcu.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,8 @@ int mt7925_mcu_set_mlo_roc(struct mt792x_bss_conf *mconf, u16 sel_links,
12801280
.roc[1].len = cpu_to_le16(sizeof(struct roc_acquire_tlv))
12811281
};
12821282

1283+
struct wiphy *wiphy = mvif->phy->mt76->hw->wiphy;
1284+
12831285
if (!mconf || hweight16(vif->valid_links) < 2 ||
12841286
hweight16(sel_links) != 2)
12851287
return -EPERM;
@@ -1302,7 +1304,8 @@ int mt7925_mcu_set_mlo_roc(struct mt792x_bss_conf *mconf, u16 sel_links,
13021304
is_AG_band |= links[i].chan->band == NL80211_BAND_2GHZ;
13031305
}
13041306

1305-
if (vif->cfg.eml_cap & IEEE80211_EML_CAP_EMLSR_SUPP)
1307+
if (!(wiphy->iftype_ext_capab[0].mld_capa_and_ops &
1308+
IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS))
13061309
type = is_AG_band ? MT7925_ROC_REQ_MLSR_AG :
13071310
MT7925_ROC_REQ_MLSR_AA;
13081311
else

0 commit comments

Comments
 (0)