History

wifi: cfg80211: allow devices to advertise extended MLD capa/ops

For UHR, multi-link power-management capability lives there, and so it's needed that hostapd knows what to advertise, and clients should have it shown to userspace for information. Repurpose the existing NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS by renaming it to NL80211_ATTR_EXT_MLD_CAPA_AND_OPS (with a define for compatibility) and advertise the capabilities. We can also later use the value, if needed, to set per-station capabilities on STAs added to AP interfaces.

Johannes Berg committed 6 months ago

Commit fb19b4d1 parent 793ccb73 files · +23 −12Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+9−6
@@ -3004,11 +3004,13 @@ enum nl80211_commands { · 3003 unmodified lines
30043004 * @NL80211_ATTR_EPCS: Flag attribute indicating that EPCS is enabled for a
30053005 * station interface.
30063006 *
3007− * @NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS: Extended MLD capabilities and
3008− * operations that userspace implements to use during association/ML
3009− * link reconfig, currently only "BTM MLD Recommendation For Multiple
3010− * APs Support". Drivers may set additional flags that they support
3011− * in the kernel or device.
3007+ * @NL80211_ATTR_EXT_MLD_CAPA_AND_OPS: Extended MLD capabilities and operations.
3008+ * For association and link reconfiguration, indicates extra capabilities
3009+ * that userspace implements, currently only "BTM MLD Recommendation For
3010+ * Multiple APs Support".
3011+ * For wiphy information, additional flags that drivers will set, but
3012+ * this is informational only for userspace (it's not expected to set
3013+ * these.)
30123014 *
30133015 * @NL80211_ATTR_WIPHY_RADIO_INDEX: (int) Integer attribute denoting the index
30143016 * of the radio in interest. Internally a value of -1 is used to
@@ -3715,7 +3717,7 @@ enum nl80211_attrs { · 700 unmodified lines
37153717 NL80211_ATTR_MLO_RECONF_REM_LINKS,
37163718 NL80211_ATTR_EPCS,
37173719
3718− NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS,
3720+ NL80211_ATTR_EXT_MLD_CAPA_AND_OPS,
37193721
37203722 NL80211_ATTR_WIPHY_RADIO_INDEX,
37213723
@@ -3769,6 +3771,7 @@ enum nl80211_attrs { · 47 unmodified lines
37693771 #define NL80211_ATTR_SAE_DATA NL80211_ATTR_AUTH_DATA
37703772 #define NL80211_ATTR_CSA_C_OFF_BEACON NL80211_ATTR_CNTDWN_OFFS_BEACON
37713773 #define NL80211_ATTR_CSA_C_OFF_PRESP NL80211_ATTR_CNTDWN_OFFS_PRESP
3774+#define NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS NL80211_ATTR_EXT_MLD_CAPA_AND_OPS
37723775
37733776 /*
37743777 * Allow user space programs to use #ifdef on new attributes by defining them