wifi: nl80211: re-enable multi-link reconfiguration
authorJohannes Berg <johannes.berg@intel.com>
Tue, 18 Mar 2025 12:50:08 +0000 (13:50 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Mar 2025 13:52:11 +0000 (14:52 +0100)
With the recent fixes, we can re-enable multi-link
reconfiguration. Also add a CMD() entry to allow
userspace discovery for it.

Link: https://patch.msgid.link/20250318135009.a95c43837a0f.Ic6ed3d184e5be8ba47c6affa7271daaf824fd823@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index 1a9fc403d50d8d3737da544a4077a8e9310528dc..f039a7d0d6f73957bd599c49edaa1e5bbc858857 100644 (file)
@@ -2773,6 +2773,7 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev,
                        CMD(update_ft_ies, UPDATE_FT_IES);
                        if (rdev->wiphy.sar_capa)
                                CMD(set_sar_specs, SET_SAR_SPECS);
+                       CMD(assoc_ml_reconf, ASSOC_MLO_RECONF);
                }
 #undef CMD
 
@@ -16557,7 +16558,7 @@ static int nl80211_assoc_ml_reconf(struct sk_buff *skb, struct genl_info *info)
                req.ext_mld_capa_ops =
                        nla_get_u16(info->attrs[NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS]);
 
-       err = -EOPNOTSUPP;
+       err = cfg80211_assoc_ml_reconf(rdev, dev, &req);
 
 out:
        for (link_id = 0; link_id < ARRAY_SIZE(req.add_links); link_id++)