mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: introduce MLO capability control
This patch introduces MLO capability control for the MT792x Wi-Fi driver. It removes the unused `MT792x_CHIP_CAP_MLO_EVT_EN` flag and introduces new capability flags `MT792x_CHIP_CAP_MLO_EN` and `MT792x_CHIP_CAP_MLO_EML_EN` to enable MLO and EML features based on firmware capabilities. Signed-off-by: Ming Yen Hsieh <[email protected]> Reviewed-by: Sabeeh Khan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
e5fef13852
commit
3e25f2bc33
+1
-1
@@ -251,7 +251,7 @@ int mt7925_init_mlo_caps(struct mt792x_phy *phy)
|
||||
},
|
||||
};
|
||||
|
||||
if (!(phy->chip_cap & MT792x_CHIP_CAP_MLO_EVT_EN))
|
||||
if (!(phy->chip_cap & MT792x_CHIP_CAP_MLO_EN))
|
||||
return 0;
|
||||
|
||||
ext_capab[0].eml_capabilities = phy->eml_cap;
|
||||
|
||||
+8
-2
@@ -2559,6 +2559,7 @@ mt7925_mcu_bss_mld_tlv(struct sk_buff *skb,
|
||||
struct ieee80211_vif *vif = link_conf->vif;
|
||||
struct mt792x_bss_conf *mconf = mt792x_link_conf_to_mconf(link_conf);
|
||||
struct mt792x_vif *mvif = (struct mt792x_vif *)link_conf->vif->drv_priv;
|
||||
struct mt792x_phy *phy = mvif->phy;
|
||||
struct bss_mld_tlv *mld;
|
||||
struct tlv *tlv;
|
||||
bool is_mld;
|
||||
@@ -2574,8 +2575,13 @@ mt7925_mcu_bss_mld_tlv(struct sk_buff *skb,
|
||||
mld->group_mld_id = is_mld ? mvif->bss_conf.mt76.idx : 0xff;
|
||||
mld->own_mld_id = mconf->mt76.idx + 32;
|
||||
mld->remap_idx = 0xff;
|
||||
mld->eml_enable = !!(link_conf->vif->cfg.eml_cap &
|
||||
IEEE80211_EML_CAP_EMLSR_SUPP);
|
||||
|
||||
if (phy->chip_cap & MT792x_CHIP_CAP_MLO_EML_EN) {
|
||||
mld->eml_enable = !!(link_conf->vif->cfg.eml_cap &
|
||||
IEEE80211_EML_CAP_EMLSR_SUPP);
|
||||
} else {
|
||||
mld->eml_enable = 0;
|
||||
}
|
||||
|
||||
memcpy(mld->mac_addr, vif->addr, ETH_ALEN);
|
||||
}
|
||||
|
||||
@@ -27,8 +27,9 @@
|
||||
|
||||
#define MT792x_CHIP_CAP_CLC_EVT_EN BIT(0)
|
||||
#define MT792x_CHIP_CAP_RSSI_NOTIFY_EVT_EN BIT(1)
|
||||
#define MT792x_CHIP_CAP_MLO_EVT_EN BIT(2)
|
||||
#define MT792x_CHIP_CAP_WF_RF_PIN_CTRL_EVT_EN BIT(3)
|
||||
#define MT792x_CHIP_CAP_MLO_EN BIT(8)
|
||||
#define MT792x_CHIP_CAP_MLO_EML_EN BIT(9)
|
||||
|
||||
/* NOTE: used to map mt76_rates. idx may change if firmware expands table */
|
||||
#define MT792x_BASIC_RATES_TBL 11
|
||||
|
||||
Reference in New Issue
Block a user