wifi: mt76: mt7925: fix the wrong simultaneous cap for MLO
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Wed, 5 Mar 2025 00:08:48 +0000 (16:08 -0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 19 Mar 2025 13:47:03 +0000 (14:47 +0100)
The mt7925 chip is only support a single radio, so the maximum
number of simultaneous should be 0.

Fixes: 86c051f2c418 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it")
Cc: stable@vger.kernel.org
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Tested-by: Caleb Jorden <cjorden@gmail.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250305000851.493671-3-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/main.c

index 676882f3928ea798acef1dd6b6c3141e06be3909..dd886b39f550067b34d5a63aafa8e3251b777a85 100644 (file)
@@ -256,7 +256,7 @@ int mt7925_init_mlo_caps(struct mt792x_phy *phy)
 
        ext_capab[0].eml_capabilities = phy->eml_cap;
        ext_capab[0].mld_capa_and_ops =
-               u16_encode_bits(1, IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS);
+               u16_encode_bits(0, IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS);
 
        wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
        wiphy->iftype_ext_capab = ext_capab;