History

nl80211: add handling for BSS color

This patch adds the attributes, policy and parsing code to allow userland to send the info about the BSS coloring settings to the kernel.

John Crispin committed 6 years ago

Commit 5c5e52d1 parent b18379d3 files · +81 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+26−0
@@ -2400,6 +2400,8 @@ enum nl80211_commands { · 2399 unmodified lines
24002400 * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key
24012401 * (u16).
24022402 *
2403+ * @NL80211_ATTR_HE_BSS_COLOR: nested attribute for BSS Color Settings.
2404+ *
24032405 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
24042406 * @NL80211_ATTR_MAX: highest attribute number currently defined
24052407 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -2864,6 +2866,8 @@ enum nl80211_attrs { · 458 unmodified lines
28642866
28652867 NL80211_ATTR_VLAN_ID,
28662868
2869+ NL80211_ATTR_HE_BSS_COLOR,
2870+
28672871 /* add attributes here, update the policy in nl80211.c */
28682872
28692873 __NL80211_ATTR_AFTER_LAST,
@@ -6587,5 +6591,27 @@ enum nl80211_obss_pd_attributes { · 3717 unmodified lines
65876591 NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1,
65886592 };
65896593
6594+/**
6595+ * enum nl80211_bss_color_attributes - BSS Color attributes
6596+ * @__NL80211_HE_BSS_COLOR_ATTR_INVALID: Invalid
6597+ *
6598+ * @NL80211_HE_BSS_COLOR_ATTR_COLOR: the current BSS Color.
6599+ * @NL80211_HE_BSS_COLOR_ATTR_DISABLED: is BSS coloring disabled.
6600+ * @NL80211_HE_BSS_COLOR_ATTR_PARTIAL: the AID equation to be used..
6601+ *
6602+ * @__NL80211_HE_BSS_COLOR_ATTR_LAST: Internal
6603+ * @NL80211_HE_BSS_COLOR_ATTR_MAX: highest BSS Color attribute.
6604+ */
6605+enum nl80211_bss_color_attributes {
6606+ __NL80211_HE_BSS_COLOR_ATTR_INVALID,
6607+
6608+ NL80211_HE_BSS_COLOR_ATTR_COLOR,
6609+ NL80211_HE_BSS_COLOR_ATTR_DISABLED,
6610+ NL80211_HE_BSS_COLOR_ATTR_PARTIAL,
6611+
6612+ /* keep last */
6613+ __NL80211_HE_BSS_COLOR_ATTR_LAST,
6614+ NL80211_HE_BSS_COLOR_ATTR_MAX = __NL80211_HE_BSS_COLOR_ATTR_LAST - 1,
6615+};
65906616
65916617 #endif /* __LINUX_NL80211_H */