This patch adds the attributes, policy and parsing code to allow userland to send the info about the BSS coloring settings to the kernel.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -2400,6 +2400,8 @@ enum nl80211_commands { · 2399 unmodified lines | |||
| 2400 | * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key | 2400 | * @NL80211_ATTR_VLAN_ID: VLAN ID (1..4094) for the station and VLAN group key |
| 2401 | * (u16). | 2401 | * (u16). |
| 2402 | * | 2402 | * |
| 2403 | * @NL80211_ATTR_HE_BSS_COLOR: nested attribute for BSS Color Settings. | ||
| 2404 | * | ||
| 2403 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available | 2405 | * @NUM_NL80211_ATTR: total number of nl80211_attrs available |
| 2404 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 2406 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
| 2405 | * @__NL80211_ATTR_AFTER_LAST: internal use | 2407 | * @__NL80211_ATTR_AFTER_LAST: internal use |
| @@ -2864,6 +2866,8 @@ enum nl80211_attrs { · 458 unmodified lines | |||
| 2864 | 2866 | ||
| 2865 | NL80211_ATTR_VLAN_ID, | 2867 | NL80211_ATTR_VLAN_ID, |
| 2866 | 2868 | ||
| 2869 | NL80211_ATTR_HE_BSS_COLOR, | ||
| 2870 | |||
| 2867 | /* add attributes here, update the policy in nl80211.c */ | 2871 | /* add attributes here, update the policy in nl80211.c */ |
| 2868 | 2872 | ||
| 2869 | __NL80211_ATTR_AFTER_LAST, | 2873 | __NL80211_ATTR_AFTER_LAST, |
| @@ -6587,5 +6591,27 @@ enum nl80211_obss_pd_attributes { · 3717 unmodified lines | |||
| 6587 | NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1, | 6591 | NL80211_HE_OBSS_PD_ATTR_MAX = __NL80211_HE_OBSS_PD_ATTR_LAST - 1, |
| 6588 | }; | 6592 | }; |
| 6589 | 6593 | ||
| 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 | }; | ||
| 6590 | 6616 | ||
| 6591 | #endif /* __LINUX_NL80211_H */ | 6617 | #endif /* __LINUX_NL80211_H */ |