iw: update to 3.15
[openwrt/openwrt.git] / package / network / utils / iw / patches / 001-nl80211_h_sync.patch
1 --- a/nl80211.h
2 +++ b/nl80211.h
3 @@ -503,6 +503,9 @@
4 * TX status event pertaining to the TX request.
5 * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
6 * management frames at CCK rate or not in 2GHz band.
7 + * %NL80211_ATTR_CSA_C_OFFSETS_TX is an array of offsets to CSA
8 + * counters which will be updated to the current value. This attribute
9 + * is used during CSA period.
10 * @NL80211_CMD_FRAME_WAIT_CANCEL: When an off-channel TX was requested, this
11 * command may be used with the corresponding cookie to cancel the wait
12 * time if it is known that it is no longer necessary.
13 @@ -1525,10 +1528,10 @@ enum nl80211_commands {
14 * operation).
15 * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information
16 * for the time while performing a channel switch.
17 - * @NL80211_ATTR_CSA_C_OFF_BEACON: Offset of the channel switch counter
18 - * field in the beacons tail (%NL80211_ATTR_BEACON_TAIL).
19 - * @NL80211_ATTR_CSA_C_OFF_PRESP: Offset of the channel switch counter
20 - * field in the probe response (%NL80211_ATTR_PROBE_RESP).
21 + * @NL80211_ATTR_CSA_C_OFF_BEACON: An array of offsets (u16) to the channel
22 + * switch counters in the beacons tail (%NL80211_ATTR_BEACON_TAIL).
23 + * @NL80211_ATTR_CSA_C_OFF_PRESP: An array of offsets (u16) to the channel
24 + * switch counters in the probe response (%NL80211_ATTR_PROBE_RESP).
25 *
26 * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32.
27 * As specified in the &enum nl80211_rxmgmt_flags.
28 @@ -1576,9 +1579,21 @@ enum nl80211_commands {
29 * advertise values that cannot always be met. In such cases, an attempt
30 * to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
31 *
32 + * @NL80211_ATTR_CSA_C_OFFSETS_TX: An array of csa counter offsets (u16) which
33 + * should be updated when the frame is transmitted.
34 + * @NL80211_ATTR_MAX_CSA_COUNTERS: U8 attribute used to advertise the maximum
35 + * supported number of csa counters.
36 + *
37 * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32.
38 * As specified in the &enum nl80211_tdls_peer_capability.
39 *
40 + * @NL80211_ATTR_IFACE_SOCKET_OWNER: flag attribute, if set during interface
41 + * creation then the new interface will be owned by the netlink socket
42 + * that created it and will be destroyed when the socket is closed
43 + *
44 + * @NL80211_ATTR_WIPHY_ANTENNA_GAIN: Configured antenna gain. Used to reduce
45 + * transmit power to stay within regulatory limits. u32, dBi.
46 + *
47 * @NL80211_ATTR_MAX: highest attribute number currently defined
48 * @__NL80211_ATTR_AFTER_LAST: internal use
49 */
50 @@ -1914,6 +1929,13 @@ enum nl80211_attrs {
51
52 NL80211_ATTR_TDLS_PEER_CAPABILITY,
53
54 + NL80211_ATTR_IFACE_SOCKET_OWNER,
55 +
56 + NL80211_ATTR_CSA_C_OFFSETS_TX,
57 + NL80211_ATTR_MAX_CSA_COUNTERS,
58 +
59 + NL80211_ATTR_WIPHY_ANTENNA_GAIN,
60 +
61 /* add attributes here, update the policy in nl80211.c */
62
63 __NL80211_ATTR_AFTER_LAST,
64 @@ -2182,6 +2204,8 @@ enum nl80211_sta_bss_param {
65 * Contains a nested array of signal strength attributes (u8, dBm)
66 * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average
67 * Same format as NL80211_STA_INFO_CHAIN_SIGNAL.
68 + * @NL80211_STA_EXPECTED_THROUGHPUT: expected throughput considering also the
69 + * 802.11 header (u32, kbps)
70 * @__NL80211_STA_INFO_AFTER_LAST: internal
71 * @NL80211_STA_INFO_MAX: highest possible station info attribute
72 */
73 @@ -2213,6 +2237,7 @@ enum nl80211_sta_info {
74 NL80211_STA_INFO_TX_BYTES64,
75 NL80211_STA_INFO_CHAIN_SIGNAL,
76 NL80211_STA_INFO_CHAIN_SIGNAL_AVG,
77 + NL80211_STA_INFO_EXPECTED_THROUGHPUT,
78
79 /* keep last */
80 __NL80211_STA_INFO_AFTER_LAST,
81 @@ -2336,9 +2361,34 @@ enum nl80211_band_attr {
82 * using this channel as the primary or any of the secondary channels
83 * isn't possible
84 * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
85 + * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this
86 + * channel. A channel that has the INDOOR_ONLY attribute can only be
87 + * used when there is a clear assessment that the device is operating in
88 + * an indoor surroundings, i.e., it is connected to AC power (and not
89 + * through portable DC inverters) or is under the control of a master
90 + * that is acting as an AP and is connected to AC power.
91 + * @NL80211_FREQUENCY_ATTR_GO_CONCURRENT: GO operation is allowed on this
92 + * channel if it's connected concurrently to a BSS on the same channel on
93 + * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz
94 + * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO on a
95 + * channel that has the GO_CONCURRENT attribute set can be done when there
96 + * is a clear assessment that the device is operating under the guidance of
97 + * an authorized master, i.e., setting up a GO while the device is also
98 + * connected to an AP with DFS and radar detection on the UNII band (it is
99 + * up to user-space, i.e., wpa_supplicant to perform the required
100 + * verifications)
101 + * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed
102 + * on this channel in current regulatory domain.
103 + * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed
104 + * on this channel in current regulatory domain.
105 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
106 * currently defined
107 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
108 + *
109 + * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122
110 + * for more information on the FCC description of the relaxations allowed
111 + * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and
112 + * NL80211_FREQUENCY_ATTR_GO_CONCURRENT.
113 */
114 enum nl80211_frequency_attr {
115 __NL80211_FREQUENCY_ATTR_INVALID,
116 @@ -2355,6 +2405,10 @@ enum nl80211_frequency_attr {
117 NL80211_FREQUENCY_ATTR_NO_80MHZ,
118 NL80211_FREQUENCY_ATTR_NO_160MHZ,
119 NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
120 + NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
121 + NL80211_FREQUENCY_ATTR_GO_CONCURRENT,
122 + NL80211_FREQUENCY_ATTR_NO_20MHZ,
123 + NL80211_FREQUENCY_ATTR_NO_10MHZ,
124
125 /* keep last */
126 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
127 @@ -2573,10 +2627,13 @@ enum nl80211_dfs_regions {
128 * present has been registered with the wireless core that
129 * has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a
130 * supported feature.
131 + * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the
132 + * platform is operating in an indoor environment.
133 */
134 enum nl80211_user_reg_hint_type {
135 NL80211_USER_REG_HINT_USER = 0,
136 NL80211_USER_REG_HINT_CELL_BASE = 1,
137 + NL80211_USER_REG_HINT_INDOOR = 2,
138 };
139
140 /**
141 @@ -3650,6 +3707,8 @@ enum nl80211_iface_limit_attrs {
142 * different channels may be used within this group.
143 * @NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS: u32 attribute containing the bitmap
144 * of supported channel widths for radar detection.
145 + * @NL80211_IFACE_COMB_RADAR_DETECT_REGIONS: u32 attribute containing the bitmap
146 + * of supported regulatory regions for radar detection.
147 * @NUM_NL80211_IFACE_COMB: number of attributes
148 * @MAX_NL80211_IFACE_COMB: highest attribute number
149 *
150 @@ -3683,6 +3742,7 @@ enum nl80211_if_combination_attrs {
151 NL80211_IFACE_COMB_STA_AP_BI_MATCH,
152 NL80211_IFACE_COMB_NUM_CHANNELS,
153 NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS,
154 + NL80211_IFACE_COMB_RADAR_DETECT_REGIONS,
155
156 /* keep last */
157 NUM_NL80211_IFACE_COMB,
158 @@ -3893,6 +3953,9 @@ enum nl80211_ap_sme_features {
159 * interface. An active monitor interface behaves like a normal monitor
160 * interface, but gets added to the driver. It ensures that incoming
161 * unicast packets directed at the configured interface address get ACKed.
162 + * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic
163 + * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the
164 + * lifetime of a BSS.
165 */
166 enum nl80211_feature_flags {
167 NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
168 @@ -3913,6 +3976,7 @@ enum nl80211_feature_flags {
169 NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15,
170 NL80211_FEATURE_USERSPACE_MPM = 1 << 16,
171 NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17,
172 + NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18,
173 };
174
175 /**