nl80211: support S1G capability overrides in assoc
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 22 Sep 2020 02:28:04 +0000 (19:28 -0700)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 10:39:41 +0000 (11:39 +0100)
NL80211_ATTR_S1G_CAPABILITY can be passed along with
NL80211_ATTR_S1G_CAPABILITY_MASK to NL80211_CMD_ASSOCIATE
to indicate S1G capabilities which should override the
hardware capabilities in eg. the association request.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200922022818.15855-4-thomas@adapt-ip.com
[johannes: always require both attributes together, commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h

index 6e186c29ba76369fea58be0384796df4c240e218..c7d78dfe042efd1c5370f20bfb6411fe9a3d4a56 100644 (file)
@@ -2349,6 +2349,8 @@ ieee80211_he_spr_size(const u8 *he_spr_ie)
 }
 
 /* S1G Capabilities Information field */
+#define IEEE80211_S1G_CAPABILITY_LEN   15
+
 #define S1G_CAP0_S1G_LONG      BIT(0)
 #define S1G_CAP0_SGI_1MHZ      BIT(1)
 #define S1G_CAP0_SGI_2MHZ      BIT(2)