blob: b804a9739e4463ea8e508d3b5b3de375d5e4951a [file] [log] [blame]
developere638cf42021-12-09 15:25:49 +08001diff --git a/package/network/services/hostapd/patches/903-master-sync-include-uapi-linux-nl80211.patch b/package/network/services/hostapd/patches/903-master-sync-include-uapi-linux-nl80211.patch
2new file mode 100644
3index 0000000..fe47b57
4--- /dev/null
5+++ b/package/network/services/hostapd/patches/903-master-sync-include-uapi-linux-nl80211.patch
6@@ -0,0 +1,57 @@
7+diff --git a/src/drivers/nl80211_copy.h b/src/drivers/nl80211_copy.h
8+index f962c06..f7be755 100644
9+--- a/src/drivers/nl80211_copy.h
10++++ b/src/drivers/nl80211_copy.h
11+@@ -2560,6 +2560,19 @@ enum nl80211_commands {
12+ * disassoc events to indicate that an immediate reconnect to the AP
13+ * is desired.
14+ *
15++ * @NL80211_ATTR_OBSS_COLOR_BITMAP: bitmap of the u64 BSS colors for the
16++ * %NL80211_CMD_OBSS_COLOR_COLLISION event.
17++ *
18++ * @NL80211_ATTR_COLOR_CHANGE_COUNT: u8 attribute specifying the number of TBTT's
19++ * until the color switch event.
20++ * @NL80211_ATTR_COLOR_CHANGE_COLOR: u8 attribute specifying the color that we are
21++ * switching to
22++ * @NL80211_ATTR_COLOR_CHANGE_ELEMS: Nested set of attributes containing the IE
23++ * information for the time while performing a color switch.
24++ *
25++ * @NL80211_ATTR_WIPHY_ANTENNA_GAIN: Configured antenna gain. Used to reduce
26++ * transmit power to stay within regulatory limits. u32, dBi.
27++ *
28+ * @NUM_NL80211_ATTR: total number of nl80211_attrs available
29+ * @NL80211_ATTR_MAX: highest attribute number currently defined
30+ * @__NL80211_ATTR_AFTER_LAST: internal use
31+@@ -3057,6 +3070,14 @@ enum nl80211_attrs {
32+
33+ NL80211_ATTR_DISABLE_HE,
34+
35++ NL80211_ATTR_OBSS_COLOR_BITMAP,
36++
37++ NL80211_ATTR_COLOR_CHANGE_COUNT,
38++ NL80211_ATTR_COLOR_CHANGE_COLOR,
39++ NL80211_ATTR_COLOR_CHANGE_ELEMS,
40++
41++ NL80211_ATTR_WIPHY_ANTENNA_GAIN,
42++
43+ /* add attributes here, update the policy in nl80211.c */
44+
45+ __NL80211_ATTR_AFTER_LAST,
46+@@ -5950,6 +5971,9 @@ enum nl80211_feature_flags {
47+ * frame protection for all management frames exchanged during the
48+ * negotiation and range measurement procedure.
49+ *
50++ * @NL80211_EXT_FEATURE_BSS_COLOR: The driver supports BSS color collision
51++ * detection and change announcemnts.
52++ *
53+ * @NUM_NL80211_EXT_FEATURES: number of extended features.
54+ * @MAX_NL80211_EXT_FEATURES: highest extended feature index.
55+ */
56+@@ -6014,6 +6038,7 @@ enum nl80211_ext_feature_index {
57+ NL80211_EXT_FEATURE_SECURE_LTF,
58+ NL80211_EXT_FEATURE_SECURE_RTT,
59+ NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE,
60++ NL80211_EXT_FEATURE_BSS_COLOR,
61+
62+ /* add new features before the definition below */
63+ NUM_NL80211_EXT_FEATURES,