History

nl80211: Unsolicited broadcast probe response support

This patch adds new attributes to support unsolicited broadcast probe response transmission used for in-band discovery in 6GHz band (IEEE P802.11ax/D6.0 26.17.2.3.2, AP behavior for fast passive scanning). The new attribute, NL80211_ATTR_UNSOL_BCAST_PROBE_RESP, is nested which supports following parameters: (1) NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT - Packet interval (2) NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL - Template data

Aloka Dixit committed 6 years ago

Commit 7443dcd1 parent 295b02c3 files · +100 −0Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+36−0
@@ -2517,6 +2517,10 @@ enum nl80211_commands { · 2516 unmodified lines
2517 * discovery. It is a nested attribute, see2517 * discovery. It is a nested attribute, see
2518 * &enum nl80211_fils_discovery_attributes.2518 * &enum nl80211_fils_discovery_attributes.
2519 *2519 *
2520 * @NL80211_ATTR_UNSOL_BCAST_PROBE_RESP: Optional parameter to configure
2521 * unsolicited broadcast probe response. It is a nested attribute, see
2522 * &enum nl80211_unsol_bcast_probe_resp_attributes.
2523 *
2520 * @NUM_NL80211_ATTR: total number of nl80211_attrs available2524 * @NUM_NL80211_ATTR: total number of nl80211_attrs available
2521 * @NL80211_ATTR_MAX: highest attribute number currently defined2525 * @NL80211_ATTR_MAX: highest attribute number currently defined
2522 * @__NL80211_ATTR_AFTER_LAST: internal use2526 * @__NL80211_ATTR_AFTER_LAST: internal use
@@ -3001,6 +3005,8 @@ enum nl80211_attrs { · 478 unmodified lines
3001 3005
3002 NL80211_ATTR_FILS_DISCOVERY,3006 NL80211_ATTR_FILS_DISCOVERY,
3003 3007
3008 NL80211_ATTR_UNSOL_BCAST_PROBE_RESP,
3009
3004 /* add attributes here, update the policy in nl80211.c */3010 /* add attributes here, update the policy in nl80211.c */
3005 3011
3006 __NL80211_ATTR_AFTER_LAST,3012 __NL80211_ATTR_AFTER_LAST,
@@ -5876,6 +5882,9 @@ enum nl80211_feature_flags { · 2869 unmodified lines
5876 * @NL80211_EXT_FEATURE_FILS_DISCOVERY: Driver/device supports FILS discovery5882 * @NL80211_EXT_FEATURE_FILS_DISCOVERY: Driver/device supports FILS discovery
5877 * frames transmission5883 * frames transmission
5878 *5884 *
5885 * @NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP: Driver/device supports
5886 * unsolicited broadcast probe response transmission
5887 *
5879 * @NUM_NL80211_EXT_FEATURES: number of extended features.5888 * @NUM_NL80211_EXT_FEATURES: number of extended features.
5880 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.5889 * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
5881 */5890 */
@@ -5935,6 +5944,7 @@ enum nl80211_ext_feature_index { · 53 unmodified lines
5935 NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK,5944 NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK,
5936 NL80211_EXT_FEATURE_SAE_OFFLOAD_AP,5945 NL80211_EXT_FEATURE_SAE_OFFLOAD_AP,
5937 NL80211_EXT_FEATURE_FILS_DISCOVERY,5946 NL80211_EXT_FEATURE_FILS_DISCOVERY,
5947 NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP,
5938 5948
5939 /* add new features before the definition below */5949 /* add new features before the definition below */
5940 NUM_NL80211_EXT_FEATURES,5950 NUM_NL80211_EXT_FEATURES,
@@ -7063,4 +7073,30 @@ enum nl80211_fils_discovery_attributes { · 1122 unmodified lines
7063 */7073 */
7064#define NL80211_FILS_DISCOVERY_TMPL_MIN_LEN 427074#define NL80211_FILS_DISCOVERY_TMPL_MIN_LEN 42
7065 7075
7076/**
7077 * enum nl80211_unsol_bcast_probe_resp_attributes - Unsolicited broadcast probe
7078 * response configuration. Applicable only in 6GHz.
7079 *
7080 * @__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID: Invalid
7081 *
7082 * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT: Maximum packet interval (u32, TU).
7083 * Allowed range: 0..20 (TU = Time Unit). IEEE P802.11ax/D6.0
7084 * 26.17.2.3.2 (AP behavior for fast passive scanning).
7085 * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL: Unsolicited broadcast probe response
7086 * frame template (binary).
7087 *
7088 * @__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST: Internal
7089 * @NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: highest attribute
7090 */
7091enum nl80211_unsol_bcast_probe_resp_attributes {
7092 __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID,
7093
7094 NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT,
7095 NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL,
7096
7097 /* keep last */
7098 __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST,
7099 NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX =
7100 __NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST - 1
7101};
7066#endif /* __LINUX_NL80211_H */7102#endif /* __LINUX_NL80211_H */