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. Signed-off-by: John Crispin <john@phrozen.org> Link: https://lore.kernel.org/r/20191217141921.8114-1-john@phrozen.org [johannes: remove the strict policy parsing, that was a misunderstanding] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
b18379d7aa
commit
5c5e52d1bb
@@ -259,6 +259,19 @@ struct ieee80211_he_obss_pd {
|
||||
u8 max_offset;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cfg80211_he_bss_color - AP settings for BSS coloring
|
||||
*
|
||||
* @color: the current color.
|
||||
* @disabled: is the feature disabled.
|
||||
* @partial: define the AID equation.
|
||||
*/
|
||||
struct cfg80211_he_bss_color {
|
||||
u8 color;
|
||||
bool disabled;
|
||||
bool partial;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct ieee80211_sta_ht_cap - STA's HT capabilities
|
||||
*
|
||||
@@ -990,6 +1003,7 @@ enum cfg80211_ap_settings_flags {
|
||||
* @twt_responder: Enable Target Wait Time
|
||||
* @flags: flags, as defined in enum cfg80211_ap_settings_flags
|
||||
* @he_obss_pd: OBSS Packet Detection settings
|
||||
* @he_bss_color: BSS Color settings
|
||||
*/
|
||||
struct cfg80211_ap_settings {
|
||||
struct cfg80211_chan_def chandef;
|
||||
@@ -1018,6 +1032,7 @@ struct cfg80211_ap_settings {
|
||||
bool twt_responder;
|
||||
u32 flags;
|
||||
struct ieee80211_he_obss_pd he_obss_pd;
|
||||
struct cfg80211_he_bss_color he_bss_color;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user