Skip to content

Commit ef0e57e

Browse files
csyuancnbd168
authored andcommitted
wifi: mt76: mt7996: Export MLO AP capabilities to mac80211
Report MT7996 MLO AP capabilities to mac80211 stack. Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/20250827-mt7996-mlo-ap-capa-v1-1-b5cfbcafa25f@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent 0f145f4 commit ef0e57e

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

  • drivers/net/wireless/mediatek/mt76/mt7996

drivers/net/wireless/mediatek/mt76/mt7996/init.c

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,24 @@ static const struct ieee80211_iface_combination if_comb = {
6363
.beacon_int_min_gcd = 100,
6464
};
6565

66+
static const u8 if_types_ext_capa_ap[] = {
67+
[0] = WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING,
68+
[2] = WLAN_EXT_CAPA3_MULTI_BSSID_SUPPORT,
69+
[7] = WLAN_EXT_CAPA8_OPMODE_NOTIF,
70+
};
71+
72+
static const struct wiphy_iftype_ext_capab iftypes_ext_capa[] = {
73+
{
74+
.iftype = NL80211_IFTYPE_AP,
75+
.extended_capabilities = if_types_ext_capa_ap,
76+
.extended_capabilities_mask = if_types_ext_capa_ap,
77+
.extended_capabilities_len = sizeof(if_types_ext_capa_ap),
78+
.mld_capa_and_ops =
79+
FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS,
80+
MT7996_MAX_RADIOS - 1),
81+
},
82+
};
83+
6684
static ssize_t mt7996_thermal_temp_show(struct device *dev,
6785
struct device_attribute *attr,
6886
char *buf)
@@ -463,8 +481,11 @@ mt7996_init_wiphy(struct ieee80211_hw *hw, struct mtk_wed_device *wed)
463481
wiphy->radio = dev->radios;
464482

465483
wiphy->reg_notifier = mt7996_regd_notifier;
466-
wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH;
484+
wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH |
485+
WIPHY_FLAG_SUPPORTS_MLO;
467486
wiphy->mbssid_max_interfaces = 16;
487+
wiphy->iftype_ext_capab = iftypes_ext_capa;
488+
wiphy->num_iftype_ext_capab = ARRAY_SIZE(iftypes_ext_capa);
468489

469490
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BSS_COLOR);
470491
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_VHT_IBSS);

0 commit comments

Comments
 (0)