blob: 92f79d2bdd8cf831f2e8b6354e7ea335f04efca7 [file] [log] [blame]
Johannes Berg704232c2007-04-23 12:20:05 -07001#ifndef __LINUX_NL80211_H
2#define __LINUX_NL80211_H
3/*
4 * 802.11 netlink interface public header
5 *
6 * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net>
7 */
8
9/**
Johannes Berg5727ef12007-12-19 02:03:34 +010010 * DOC: Station handling
11 *
12 * Stations are added per interface, but a special case exists with VLAN
13 * interfaces. When a station is bound to an AP interface, it may be moved
14 * into a VLAN identified by a VLAN interface index (%NL80211_ATTR_STA_VLAN).
15 * The station is still assumed to belong to the AP interface it was added
16 * to.
17 *
18 * TODO: need more info?
19 */
20
21/**
Johannes Berg55682962007-09-20 13:09:35 -040022 * enum nl80211_commands - supported nl80211 commands
23 *
24 * @NL80211_CMD_UNSPEC: unspecified command to catch errors
25 *
26 * @NL80211_CMD_GET_WIPHY: request information about a wiphy or dump request
27 * to get a list of all present wiphys.
Jouni Malinen31888482008-10-30 16:59:24 +020028 * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or
Jouni Malinen72bdcf32008-11-26 16:15:24 +020029 * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME,
30 * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ, and/or
31 * %NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET.
Johannes Berg55682962007-09-20 13:09:35 -040032 * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request
33 * or rename notification. Has attributes %NL80211_ATTR_WIPHY and
34 * %NL80211_ATTR_WIPHY_NAME.
35 * @NL80211_CMD_DEL_WIPHY: Wiphy deleted. Has attributes
36 * %NL80211_ATTR_WIPHY and %NL80211_ATTR_WIPHY_NAME.
37 *
38 * @NL80211_CMD_GET_INTERFACE: Request an interface's configuration;
39 * either a dump request on a %NL80211_ATTR_WIPHY or a specific get
40 * on an %NL80211_ATTR_IFINDEX is supported.
41 * @NL80211_CMD_SET_INTERFACE: Set type of a virtual interface, requires
42 * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_IFTYPE.
43 * @NL80211_CMD_NEW_INTERFACE: Newly created virtual interface or response
44 * to %NL80211_CMD_GET_INTERFACE. Has %NL80211_ATTR_IFINDEX,
45 * %NL80211_ATTR_WIPHY and %NL80211_ATTR_IFTYPE attributes. Can also
46 * be sent from userspace to request creation of a new virtual interface,
47 * then requires attributes %NL80211_ATTR_WIPHY, %NL80211_ATTR_IFTYPE and
48 * %NL80211_ATTR_IFNAME.
49 * @NL80211_CMD_DEL_INTERFACE: Virtual interface was deleted, has attributes
50 * %NL80211_ATTR_IFINDEX and %NL80211_ATTR_WIPHY. Can also be sent from
51 * userspace to request deletion of a virtual interface, then requires
52 * attribute %NL80211_ATTR_IFINDEX.
53 *
Johannes Berg41ade002007-12-19 02:03:29 +010054 * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified
55 * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC.
56 * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT or
57 * %NL80211_ATTR_KEY_THRESHOLD.
58 * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA,
59 * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC and %NL80211_ATTR_KEY_CIPHER
60 * attributes.
61 * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX
62 * or %NL80211_ATTR_MAC.
63 *
Johannes Berged1b6cc2007-12-19 02:03:32 +010064 * @NL80211_CMD_GET_BEACON: retrieve beacon information (returned in a
65 * %NL80222_CMD_NEW_BEACON message)
66 * @NL80211_CMD_SET_BEACON: set the beacon on an access point interface
67 * using the %NL80211_ATTR_BEACON_INTERVAL, %NL80211_ATTR_DTIM_PERIOD,
68 * %NL80211_BEACON_HEAD and %NL80211_BEACON_TAIL attributes.
69 * @NL80211_CMD_NEW_BEACON: add a new beacon to an access point interface,
70 * parameters are like for %NL80211_CMD_SET_BEACON.
71 * @NL80211_CMD_DEL_BEACON: remove the beacon, stop sending it
72 *
Johannes Berg5727ef12007-12-19 02:03:34 +010073 * @NL80211_CMD_GET_STATION: Get station attributes for station identified by
74 * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
75 * @NL80211_CMD_SET_STATION: Set station attributes for station identified by
76 * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX.
77 * @NL80211_CMD_NEW_STATION: Add a station with given attributes to the
78 * the interface identified by %NL80211_ATTR_IFINDEX.
79 * @NL80211_CMD_DEL_STATION: Remove a station identified by %NL80211_ATTR_MAC
80 * or, if no MAC address given, all stations, on the interface identified
81 * by %NL80211_ATTR_IFINDEX.
82 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +010083 * @NL80211_CMD_GET_MPATH: Get mesh path attributes for mesh path to
84 * destination %NL80211_ATTR_MAC on the interface identified by
85 * %NL80211_ATTR_IFINDEX.
86 * @NL80211_CMD_SET_MPATH: Set mesh path attributes for mesh path to
87 * destination %NL80211_ATTR_MAC on the interface identified by
88 * %NL80211_ATTR_IFINDEX.
89 * @NL80211_CMD_NEW_PATH: Add a mesh path with given attributes to the
90 * the interface identified by %NL80211_ATTR_IFINDEX.
91 * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC
92 * or, if no MAC address given, all mesh paths, on the interface identified
93 * by %NL80211_ATTR_IFINDEX.
Jouni Malinen9f1ba902008-08-07 20:07:01 +030094 * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by
95 * %NL80211_ATTR_IFINDEX.
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +010096 *
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -070097 * @NL80211_CMD_SET_REG: Set current regulatory domain. CRDA sends this command
98 * after being queried by the kernel. CRDA replies by sending a regulatory
99 * domain structure which consists of %NL80211_ATTR_REG_ALPHA set to our
100 * current alpha2 if it found a match. It also provides
101 * NL80211_ATTR_REG_RULE_FLAGS, and a set of regulatory rules. Each
102 * regulatory rule is a nested set of attributes given by
103 * %NL80211_ATTR_REG_RULE_FREQ_[START|END] and
104 * %NL80211_ATTR_FREQ_RANGE_MAX_BW with an attached power rule given by
105 * %NL80211_ATTR_REG_RULE_POWER_MAX_ANT_GAIN and
106 * %NL80211_ATTR_REG_RULE_POWER_MAX_EIRP.
107 * @NL80211_CMD_REQ_SET_REG: ask the wireless core to set the regulatory domain
108 * to the the specified ISO/IEC 3166-1 alpha2 country code. The core will
109 * store this as a valid request and then query userspace for it.
110 *
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700111 * @NL80211_CMD_GET_MESH_PARAMS: Get mesh networking properties for the
112 * interface identified by %NL80211_ATTR_IFINDEX
113 *
114 * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the
115 * interface identified by %NL80211_ATTR_IFINDEX
116 *
Johannes Berg55682962007-09-20 13:09:35 -0400117 * @NL80211_CMD_MAX: highest used command number
118 * @__NL80211_CMD_AFTER_LAST: internal use
119 */
120enum nl80211_commands {
121/* don't change the order or add anything inbetween, this is ABI! */
122 NL80211_CMD_UNSPEC,
123
124 NL80211_CMD_GET_WIPHY, /* can dump */
125 NL80211_CMD_SET_WIPHY,
126 NL80211_CMD_NEW_WIPHY,
127 NL80211_CMD_DEL_WIPHY,
128
129 NL80211_CMD_GET_INTERFACE, /* can dump */
130 NL80211_CMD_SET_INTERFACE,
131 NL80211_CMD_NEW_INTERFACE,
132 NL80211_CMD_DEL_INTERFACE,
133
Johannes Berg41ade002007-12-19 02:03:29 +0100134 NL80211_CMD_GET_KEY,
135 NL80211_CMD_SET_KEY,
136 NL80211_CMD_NEW_KEY,
137 NL80211_CMD_DEL_KEY,
138
Johannes Berged1b6cc2007-12-19 02:03:32 +0100139 NL80211_CMD_GET_BEACON,
140 NL80211_CMD_SET_BEACON,
141 NL80211_CMD_NEW_BEACON,
142 NL80211_CMD_DEL_BEACON,
143
Johannes Berg5727ef12007-12-19 02:03:34 +0100144 NL80211_CMD_GET_STATION,
145 NL80211_CMD_SET_STATION,
146 NL80211_CMD_NEW_STATION,
147 NL80211_CMD_DEL_STATION,
148
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100149 NL80211_CMD_GET_MPATH,
150 NL80211_CMD_SET_MPATH,
151 NL80211_CMD_NEW_MPATH,
152 NL80211_CMD_DEL_MPATH,
153
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300154 NL80211_CMD_SET_BSS,
155
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700156 NL80211_CMD_SET_REG,
157 NL80211_CMD_REQ_SET_REG,
158
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700159 NL80211_CMD_GET_MESH_PARAMS,
160 NL80211_CMD_SET_MESH_PARAMS,
161
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700162 /* add new commands above here */
Michael Buesch564d9bd2008-06-10 14:04:14 +0200163
Johannes Berg55682962007-09-20 13:09:35 -0400164 /* used to define NL80211_CMD_MAX below */
165 __NL80211_CMD_AFTER_LAST,
166 NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1
167};
168
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300169/*
170 * Allow user space programs to use #ifdef on new commands by defining them
171 * here
172 */
173#define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS
Johannes Berg55682962007-09-20 13:09:35 -0400174
175/**
176 * enum nl80211_attrs - nl80211 netlink attributes
177 *
178 * @NL80211_ATTR_UNSPEC: unspecified attribute to catch errors
179 *
180 * @NL80211_ATTR_WIPHY: index of wiphy to operate on, cf.
181 * /sys/class/ieee80211/<phyname>/index
182 * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming)
Jouni Malinen31888482008-10-30 16:59:24 +0200183 * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters
Jouni Malinen72bdcf32008-11-26 16:15:24 +0200184 * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz
185 * @NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET: included with NL80211_ATTR_WIPHY_FREQ
186 * if HT20 or HT40 are allowed (i.e., 802.11n disabled if not included):
187 * NL80211_SEC_CHAN_NO_HT = HT not allowed (i.e., same as not including
188 * this attribute)
189 * NL80211_SEC_CHAN_DISABLED = HT20 only
190 * NL80211_SEC_CHAN_BELOW = secondary channel is below the primary channel
191 * NL80211_SEC_CHAN_ABOVE = secondary channel is above the primary channel
Johannes Berg55682962007-09-20 13:09:35 -0400192 *
193 * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on
194 * @NL80211_ATTR_IFNAME: network interface name
195 * @NL80211_ATTR_IFTYPE: type of virtual interface, see &enum nl80211_iftype
196 *
Johannes Berg41ade002007-12-19 02:03:29 +0100197 * @NL80211_ATTR_MAC: MAC address (various uses)
198 *
199 * @NL80211_ATTR_KEY_DATA: (temporal) key data; for TKIP this consists of
200 * 16 bytes encryption key followed by 8 bytes each for TX and RX MIC
201 * keys
202 * @NL80211_ATTR_KEY_IDX: key ID (u8, 0-3)
203 * @NL80211_ATTR_KEY_CIPHER: key cipher suite (u32, as defined by IEEE 802.11
204 * section 7.3.2.25.1, e.g. 0x000FAC04)
205 * @NL80211_ATTR_KEY_SEQ: transmit key sequence number (IV/PN) for TKIP and
206 * CCMP keys, each six bytes in little endian
207 *
Johannes Berged1b6cc2007-12-19 02:03:32 +0100208 * @NL80211_ATTR_BEACON_INTERVAL: beacon interval in TU
209 * @NL80211_ATTR_DTIM_PERIOD: DTIM period for beaconing
210 * @NL80211_ATTR_BEACON_HEAD: portion of the beacon before the TIM IE
211 * @NL80211_ATTR_BEACON_TAIL: portion of the beacon after the TIM IE
212 *
Johannes Berg5727ef12007-12-19 02:03:34 +0100213 * @NL80211_ATTR_STA_AID: Association ID for the station (u16)
214 * @NL80211_ATTR_STA_FLAGS: flags, nested element with NLA_FLAG attributes of
215 * &enum nl80211_sta_flags.
216 * @NL80211_ATTR_STA_LISTEN_INTERVAL: listen interval as defined by
217 * IEEE 802.11 7.3.1.6 (u16).
218 * @NL80211_ATTR_STA_SUPPORTED_RATES: supported rates, array of supported
219 * rates as defined by IEEE 802.11 7.3.2.2 but without the length
220 * restriction (at most %NL80211_MAX_SUPP_RATES).
221 * @NL80211_ATTR_STA_VLAN: interface index of VLAN interface to move station
222 * to, or the AP interface the station was originally added to to.
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100223 * @NL80211_ATTR_STA_INFO: information about a station, part of station info
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100224 * given for %NL80211_CMD_GET_STATION, nested attribute containing
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100225 * info as possible, see &enum nl80211_sta_info.
Johannes Berg5727ef12007-12-19 02:03:34 +0100226 *
Johannes Bergee688b002008-01-24 19:38:39 +0100227 * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands,
228 * consisting of a nested array.
229 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100230 * @NL80211_ATTR_MESH_ID: mesh id (1-32 bytes).
231 * @NL80211_ATTR_PLINK_ACTION: action to perform on the mesh peer link.
232 * @NL80211_ATTR_MPATH_NEXT_HOP: MAC address of the next hop for a mesh path.
233 * @NL80211_ATTR_MPATH_INFO: information about a mesh_path, part of mesh path
234 * info given for %NL80211_CMD_GET_MPATH, nested attribute described at
235 * &enum nl80211_mpath_info.
236 *
Michael Wu66f7ac52008-01-31 19:48:22 +0100237 * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of
238 * &enum nl80211_mntr_flags.
239 *
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700240 * @NL80211_ATTR_REG_ALPHA2: an ISO-3166-alpha2 country code for which the
241 * current regulatory domain should be set to or is already set to.
242 * For example, 'CR', for Costa Rica. This attribute is used by the kernel
243 * to query the CRDA to retrieve one regulatory domain. This attribute can
244 * also be used by userspace to query the kernel for the currently set
245 * regulatory domain. We chose an alpha2 as that is also used by the
246 * IEEE-802.11d country information element to identify a country.
247 * Users can also simply ask the wireless core to set regulatory domain
248 * to a specific alpha2.
249 * @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory
250 * rules.
251 *
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300252 * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1)
253 * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled
254 * (u8, 0 or 1)
255 * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled
256 * (u8, 0 or 1)
Jouni Malinen90c97a02008-10-30 16:59:22 +0200257 * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic
258 * rates in format defined by IEEE 802.11 7.3.2.2 but without the length
259 * restriction (at most %NL80211_MAX_SUPP_RATES).
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300260 *
Jouni Malinen36aedc902008-08-25 11:58:58 +0300261 * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from
262 * association request when used with NL80211_CMD_NEW_STATION)
263 *
Luis R. Rodriguezf59ac042008-08-29 16:26:43 -0700264 * @NL80211_ATTR_SUPPORTED_IFTYPES: nested attribute containing all
265 * supported interface types, each a flag attribute with the number
266 * of the interface mode.
267 *
Johannes Berg55682962007-09-20 13:09:35 -0400268 * @NL80211_ATTR_MAX: highest attribute number currently defined
269 * @__NL80211_ATTR_AFTER_LAST: internal use
270 */
271enum nl80211_attrs {
272/* don't change the order or add anything inbetween, this is ABI! */
273 NL80211_ATTR_UNSPEC,
274
275 NL80211_ATTR_WIPHY,
276 NL80211_ATTR_WIPHY_NAME,
277
278 NL80211_ATTR_IFINDEX,
279 NL80211_ATTR_IFNAME,
280 NL80211_ATTR_IFTYPE,
281
Johannes Berg41ade002007-12-19 02:03:29 +0100282 NL80211_ATTR_MAC,
283
284 NL80211_ATTR_KEY_DATA,
285 NL80211_ATTR_KEY_IDX,
286 NL80211_ATTR_KEY_CIPHER,
287 NL80211_ATTR_KEY_SEQ,
288 NL80211_ATTR_KEY_DEFAULT,
289
Johannes Berged1b6cc2007-12-19 02:03:32 +0100290 NL80211_ATTR_BEACON_INTERVAL,
291 NL80211_ATTR_DTIM_PERIOD,
292 NL80211_ATTR_BEACON_HEAD,
293 NL80211_ATTR_BEACON_TAIL,
294
Johannes Berg5727ef12007-12-19 02:03:34 +0100295 NL80211_ATTR_STA_AID,
296 NL80211_ATTR_STA_FLAGS,
297 NL80211_ATTR_STA_LISTEN_INTERVAL,
298 NL80211_ATTR_STA_SUPPORTED_RATES,
299 NL80211_ATTR_STA_VLAN,
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100300 NL80211_ATTR_STA_INFO,
Johannes Berg5727ef12007-12-19 02:03:34 +0100301
Johannes Bergee688b002008-01-24 19:38:39 +0100302 NL80211_ATTR_WIPHY_BANDS,
303
Michael Wu66f7ac52008-01-31 19:48:22 +0100304 NL80211_ATTR_MNTR_FLAGS,
305
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100306 NL80211_ATTR_MESH_ID,
307 NL80211_ATTR_STA_PLINK_ACTION,
308 NL80211_ATTR_MPATH_NEXT_HOP,
309 NL80211_ATTR_MPATH_INFO,
310
Jouni Malinen9f1ba902008-08-07 20:07:01 +0300311 NL80211_ATTR_BSS_CTS_PROT,
312 NL80211_ATTR_BSS_SHORT_PREAMBLE,
313 NL80211_ATTR_BSS_SHORT_SLOT_TIME,
314
Jouni Malinen36aedc902008-08-25 11:58:58 +0300315 NL80211_ATTR_HT_CAPABILITY,
316
Luis R. Rodriguezf59ac042008-08-29 16:26:43 -0700317 NL80211_ATTR_SUPPORTED_IFTYPES,
318
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700319 NL80211_ATTR_REG_ALPHA2,
320 NL80211_ATTR_REG_RULES,
321
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700322 NL80211_ATTR_MESH_PARAMS,
323
Jouni Malinen90c97a02008-10-30 16:59:22 +0200324 NL80211_ATTR_BSS_BASIC_RATES,
325
Jouni Malinen31888482008-10-30 16:59:24 +0200326 NL80211_ATTR_WIPHY_TXQ_PARAMS,
Jouni Malinen72bdcf32008-11-26 16:15:24 +0200327 NL80211_ATTR_WIPHY_FREQ,
328 NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET,
Jouni Malinen31888482008-10-30 16:59:24 +0200329
Michael Buesch564d9bd2008-06-10 14:04:14 +0200330 /* add attributes here, update the policy in nl80211.c */
331
Johannes Berg55682962007-09-20 13:09:35 -0400332 __NL80211_ATTR_AFTER_LAST,
333 NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
334};
335
Jouni Malinen36aedc902008-08-25 11:58:58 +0300336/*
337 * Allow user space programs to use #ifdef on new attributes by defining them
338 * here
339 */
340#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY
Jouni Malinen90c97a02008-10-30 16:59:22 +0200341#define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES
Jouni Malinen31888482008-10-30 16:59:24 +0200342#define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS
Jouni Malinen72bdcf32008-11-26 16:15:24 +0200343#define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ
344#define NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET
Jouni Malinen36aedc902008-08-25 11:58:58 +0300345
Luis R. Rodriguezffd78912008-06-21 10:02:46 -0400346#define NL80211_MAX_SUPP_RATES 32
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700347#define NL80211_MAX_SUPP_REG_RULES 32
Luis R. Rodriguezffd78912008-06-21 10:02:46 -0400348#define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0
349#define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16
350#define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24
Jouni Malinen36aedc902008-08-25 11:58:58 +0300351#define NL80211_HT_CAPABILITY_LEN 26
Johannes Berg5727ef12007-12-19 02:03:34 +0100352
Johannes Berg55682962007-09-20 13:09:35 -0400353/**
Johannes Berg704232c2007-04-23 12:20:05 -0700354 * enum nl80211_iftype - (virtual) interface types
Johannes Berg55682962007-09-20 13:09:35 -0400355 *
Johannes Berg704232c2007-04-23 12:20:05 -0700356 * @NL80211_IFTYPE_UNSPECIFIED: unspecified type, driver decides
357 * @NL80211_IFTYPE_ADHOC: independent BSS member
358 * @NL80211_IFTYPE_STATION: managed BSS member
359 * @NL80211_IFTYPE_AP: access point
360 * @NL80211_IFTYPE_AP_VLAN: VLAN interface for access points
361 * @NL80211_IFTYPE_WDS: wireless distribution interface
362 * @NL80211_IFTYPE_MONITOR: monitor interface receiving all frames
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100363 * @NL80211_IFTYPE_MESH_POINT: mesh point
Johannes Berg55682962007-09-20 13:09:35 -0400364 * @NL80211_IFTYPE_MAX: highest interface type number currently defined
Johannes Berg704232c2007-04-23 12:20:05 -0700365 * @__NL80211_IFTYPE_AFTER_LAST: internal use
366 *
Johannes Berg55682962007-09-20 13:09:35 -0400367 * These values are used with the %NL80211_ATTR_IFTYPE
Johannes Berg704232c2007-04-23 12:20:05 -0700368 * to set the type of an interface.
369 *
370 */
371enum nl80211_iftype {
372 NL80211_IFTYPE_UNSPECIFIED,
373 NL80211_IFTYPE_ADHOC,
374 NL80211_IFTYPE_STATION,
375 NL80211_IFTYPE_AP,
376 NL80211_IFTYPE_AP_VLAN,
377 NL80211_IFTYPE_WDS,
378 NL80211_IFTYPE_MONITOR,
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100379 NL80211_IFTYPE_MESH_POINT,
Johannes Berg704232c2007-04-23 12:20:05 -0700380
381 /* keep last */
Johannes Berg55682962007-09-20 13:09:35 -0400382 __NL80211_IFTYPE_AFTER_LAST,
383 NL80211_IFTYPE_MAX = __NL80211_IFTYPE_AFTER_LAST - 1
Johannes Berg704232c2007-04-23 12:20:05 -0700384};
Johannes Berg704232c2007-04-23 12:20:05 -0700385
Johannes Berg5727ef12007-12-19 02:03:34 +0100386/**
387 * enum nl80211_sta_flags - station flags
388 *
389 * Station flags. When a station is added to an AP interface, it is
390 * assumed to be already associated (and hence authenticated.)
391 *
392 * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X)
393 * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames
394 * with short barker preamble
395 * @NL80211_STA_FLAG_WME: station is WME/QoS capable
396 */
397enum nl80211_sta_flags {
398 __NL80211_STA_FLAG_INVALID,
399 NL80211_STA_FLAG_AUTHORIZED,
400 NL80211_STA_FLAG_SHORT_PREAMBLE,
401 NL80211_STA_FLAG_WME,
402
403 /* keep last */
404 __NL80211_STA_FLAG_AFTER_LAST,
405 NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1
406};
407
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100408/**
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100409 * enum nl80211_sta_info - station information
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100410 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100411 * These attribute types are used with %NL80211_ATTR_STA_INFO
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100412 * when getting information about a station.
413 *
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100414 * @__NL80211_STA_INFO_INVALID: attribute number 0 is reserved
415 * @NL80211_STA_INFO_INACTIVE_TIME: time since last activity (u32, msecs)
416 * @NL80211_STA_INFO_RX_BYTES: total received bytes (u32, from this station)
417 * @NL80211_STA_INFO_TX_BYTES: total transmitted bytes (u32, to this station)
418 * @__NL80211_STA_INFO_AFTER_LAST: internal
419 * @NL80211_STA_INFO_MAX: highest possible station info attribute
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100420 */
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100421enum nl80211_sta_info {
422 __NL80211_STA_INFO_INVALID,
423 NL80211_STA_INFO_INACTIVE_TIME,
424 NL80211_STA_INFO_RX_BYTES,
425 NL80211_STA_INFO_TX_BYTES,
426 NL80211_STA_INFO_LLID,
427 NL80211_STA_INFO_PLID,
428 NL80211_STA_INFO_PLINK_STATE,
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100429
430 /* keep last */
Luis Carlos Cobo2ec600d2008-02-23 15:17:06 +0100431 __NL80211_STA_INFO_AFTER_LAST,
432 NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1
433};
434
435/**
436 * enum nl80211_mpath_flags - nl80211 mesh path flags
437 *
438 * @NL80211_MPATH_FLAG_ACTIVE: the mesh path is active
439 * @NL80211_MPATH_FLAG_RESOLVING: the mesh path discovery process is running
440 * @NL80211_MPATH_FLAG_DSN_VALID: the mesh path contains a valid DSN
441 * @NL80211_MPATH_FLAG_FIXED: the mesh path has been manually set
442 * @NL80211_MPATH_FLAG_RESOLVED: the mesh path discovery process succeeded
443 */
444enum nl80211_mpath_flags {
445 NL80211_MPATH_FLAG_ACTIVE = 1<<0,
446 NL80211_MPATH_FLAG_RESOLVING = 1<<1,
447 NL80211_MPATH_FLAG_DSN_VALID = 1<<2,
448 NL80211_MPATH_FLAG_FIXED = 1<<3,
449 NL80211_MPATH_FLAG_RESOLVED = 1<<4,
450};
451
452/**
453 * enum nl80211_mpath_info - mesh path information
454 *
455 * These attribute types are used with %NL80211_ATTR_MPATH_INFO when getting
456 * information about a mesh path.
457 *
458 * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved
459 * @NL80211_ATTR_MPATH_FRAME_QLEN: number of queued frames for this destination
460 * @NL80211_ATTR_MPATH_DSN: destination sequence number
461 * @NL80211_ATTR_MPATH_METRIC: metric (cost) of this mesh path
462 * @NL80211_ATTR_MPATH_EXPTIME: expiration time for the path, in msec from now
463 * @NL80211_ATTR_MPATH_FLAGS: mesh path flags, enumerated in
464 * &enum nl80211_mpath_flags;
465 * @NL80211_ATTR_MPATH_DISCOVERY_TIMEOUT: total path discovery timeout, in msec
466 * @NL80211_ATTR_MPATH_DISCOVERY_RETRIES: mesh path discovery retries
467 */
468enum nl80211_mpath_info {
469 __NL80211_MPATH_INFO_INVALID,
470 NL80211_MPATH_INFO_FRAME_QLEN,
471 NL80211_MPATH_INFO_DSN,
472 NL80211_MPATH_INFO_METRIC,
473 NL80211_MPATH_INFO_EXPTIME,
474 NL80211_MPATH_INFO_FLAGS,
475 NL80211_MPATH_INFO_DISCOVERY_TIMEOUT,
476 NL80211_MPATH_INFO_DISCOVERY_RETRIES,
477
478 /* keep last */
479 __NL80211_MPATH_INFO_AFTER_LAST,
480 NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1
Johannes Bergfd5b74d2007-12-19 02:03:36 +0100481};
482
Johannes Bergee688b002008-01-24 19:38:39 +0100483/**
484 * enum nl80211_band_attr - band attributes
485 * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved
486 * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band,
487 * an array of nested frequency attributes
488 * @NL80211_BAND_ATTR_RATES: supported bitrates in this band,
489 * an array of nested bitrate attributes
Johannes Bergd51626d2008-10-09 12:20:13 +0200490 * @NL80211_BAND_ATTR_HT_MCS_SET: 16-byte attribute containing the MCS set as
491 * defined in 802.11n
492 * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE
493 * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n
494 * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n
Johannes Bergee688b002008-01-24 19:38:39 +0100495 */
496enum nl80211_band_attr {
497 __NL80211_BAND_ATTR_INVALID,
498 NL80211_BAND_ATTR_FREQS,
499 NL80211_BAND_ATTR_RATES,
500
Johannes Bergd51626d2008-10-09 12:20:13 +0200501 NL80211_BAND_ATTR_HT_MCS_SET,
502 NL80211_BAND_ATTR_HT_CAPA,
503 NL80211_BAND_ATTR_HT_AMPDU_FACTOR,
504 NL80211_BAND_ATTR_HT_AMPDU_DENSITY,
505
Johannes Bergee688b002008-01-24 19:38:39 +0100506 /* keep last */
507 __NL80211_BAND_ATTR_AFTER_LAST,
508 NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1
509};
510
Johannes Bergd51626d2008-10-09 12:20:13 +0200511#define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA
512
Johannes Bergee688b002008-01-24 19:38:39 +0100513/**
514 * enum nl80211_frequency_attr - frequency attributes
515 * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
516 * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
517 * regulatory domain.
518 * @NL80211_FREQUENCY_ATTR_PASSIVE_SCAN: Only passive scanning is
519 * permitted on this channel in current regulatory domain.
520 * @NL80211_FREQUENCY_ATTR_NO_IBSS: IBSS networks are not permitted
521 * on this channel in current regulatory domain.
522 * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
523 * on this channel in current regulatory domain.
Jouni Malinenbf8c1ac2008-11-22 22:00:31 +0200524 * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
525 * (100 * dBm).
Johannes Bergee688b002008-01-24 19:38:39 +0100526 */
527enum nl80211_frequency_attr {
528 __NL80211_FREQUENCY_ATTR_INVALID,
529 NL80211_FREQUENCY_ATTR_FREQ,
530 NL80211_FREQUENCY_ATTR_DISABLED,
531 NL80211_FREQUENCY_ATTR_PASSIVE_SCAN,
532 NL80211_FREQUENCY_ATTR_NO_IBSS,
533 NL80211_FREQUENCY_ATTR_RADAR,
Jouni Malinene2f367f262008-11-21 19:01:30 +0200534 NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
Johannes Bergee688b002008-01-24 19:38:39 +0100535
536 /* keep last */
537 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
538 NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1
539};
540
Jouni Malinene2f367f262008-11-21 19:01:30 +0200541#define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER
542
Johannes Bergee688b002008-01-24 19:38:39 +0100543/**
544 * enum nl80211_bitrate_attr - bitrate attributes
545 * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps
546 * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported
547 * in 2.4 GHz band.
548 */
549enum nl80211_bitrate_attr {
550 __NL80211_BITRATE_ATTR_INVALID,
551 NL80211_BITRATE_ATTR_RATE,
552 NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE,
553
554 /* keep last */
555 __NL80211_BITRATE_ATTR_AFTER_LAST,
556 NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1
557};
558
Michael Wu66f7ac52008-01-31 19:48:22 +0100559/**
Luis R. Rodriguezb2e1b302008-09-09 23:19:48 -0700560 * enum nl80211_reg_rule_attr - regulatory rule attributes
561 * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional
562 * considerations for a given frequency range. These are the
563 * &enum nl80211_reg_rule_flags.
564 * @NL80211_ATTR_FREQ_RANGE_START: starting frequencry for the regulatory
565 * rule in KHz. This is not a center of frequency but an actual regulatory
566 * band edge.
567 * @NL80211_ATTR_FREQ_RANGE_END: ending frequency for the regulatory rule
568 * in KHz. This is not a center a frequency but an actual regulatory
569 * band edge.
570 * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
571 * frequency range, in KHz.
572 * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
573 * for a given frequency range. The value is in mBi (100 * dBi).
574 * If you don't have one then don't send this.
575 * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
576 * a given frequency range. The value is in mBm (100 * dBm).
577 */
578enum nl80211_reg_rule_attr {
579 __NL80211_REG_RULE_ATTR_INVALID,
580 NL80211_ATTR_REG_RULE_FLAGS,
581
582 NL80211_ATTR_FREQ_RANGE_START,
583 NL80211_ATTR_FREQ_RANGE_END,
584 NL80211_ATTR_FREQ_RANGE_MAX_BW,
585
586 NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN,
587 NL80211_ATTR_POWER_RULE_MAX_EIRP,
588
589 /* keep last */
590 __NL80211_REG_RULE_ATTR_AFTER_LAST,
591 NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
592};
593
594/**
595 * enum nl80211_reg_rule_flags - regulatory rule flags
596 *
597 * @NL80211_RRF_NO_OFDM: OFDM modulation not allowed
598 * @NL80211_RRF_NO_CCK: CCK modulation not allowed
599 * @NL80211_RRF_NO_INDOOR: indoor operation not allowed
600 * @NL80211_RRF_NO_OUTDOOR: outdoor operation not allowed
601 * @NL80211_RRF_DFS: DFS support is required to be used
602 * @NL80211_RRF_PTP_ONLY: this is only for Point To Point links
603 * @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links
604 * @NL80211_RRF_PASSIVE_SCAN: passive scan is required
605 * @NL80211_RRF_NO_IBSS: no IBSS is allowed
606 */
607enum nl80211_reg_rule_flags {
608 NL80211_RRF_NO_OFDM = 1<<0,
609 NL80211_RRF_NO_CCK = 1<<1,
610 NL80211_RRF_NO_INDOOR = 1<<2,
611 NL80211_RRF_NO_OUTDOOR = 1<<3,
612 NL80211_RRF_DFS = 1<<4,
613 NL80211_RRF_PTP_ONLY = 1<<5,
614 NL80211_RRF_PTMP_ONLY = 1<<6,
615 NL80211_RRF_PASSIVE_SCAN = 1<<7,
616 NL80211_RRF_NO_IBSS = 1<<8,
617};
618
619/**
Michael Wu66f7ac52008-01-31 19:48:22 +0100620 * enum nl80211_mntr_flags - monitor configuration flags
621 *
622 * Monitor configuration flags.
623 *
624 * @__NL80211_MNTR_FLAG_INVALID: reserved
625 *
626 * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS
627 * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
628 * @NL80211_MNTR_FLAG_CONTROL: pass control frames
629 * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
630 * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
631 * overrides all other flags.
632 *
633 * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
634 * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
635 */
636enum nl80211_mntr_flags {
637 __NL80211_MNTR_FLAG_INVALID,
638 NL80211_MNTR_FLAG_FCSFAIL,
639 NL80211_MNTR_FLAG_PLCPFAIL,
640 NL80211_MNTR_FLAG_CONTROL,
641 NL80211_MNTR_FLAG_OTHER_BSS,
642 NL80211_MNTR_FLAG_COOK_FRAMES,
643
644 /* keep last */
645 __NL80211_MNTR_FLAG_AFTER_LAST,
646 NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
647};
648
colin@cozybit.com93da9cc2008-10-21 12:03:48 -0700649/**
650 * enum nl80211_meshconf_params - mesh configuration parameters
651 *
652 * Mesh configuration parameters
653 *
654 * @__NL80211_MESHCONF_INVALID: internal use
655 *
656 * @NL80211_MESHCONF_RETRY_TIMEOUT: specifies the initial retry timeout in
657 * millisecond units, used by the Peer Link Open message
658 *
659 * @NL80211_MESHCONF_CONFIRM_TIMEOUT: specifies the inital confirm timeout, in
660 * millisecond units, used by the peer link management to close a peer link
661 *
662 * @NL80211_MESHCONF_HOLDING_TIMEOUT: specifies the holding timeout, in
663 * millisecond units
664 *
665 * @NL80211_MESHCONF_MAX_PEER_LINKS: maximum number of peer links allowed
666 * on this mesh interface
667 *
668 * @NL80211_MESHCONF_MAX_RETRIES: specifies the maximum number of peer link
669 * open retries that can be sent to establish a new peer link instance in a
670 * mesh
671 *
672 * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh
673 * point.
674 *
675 * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically
676 * open peer links when we detect compatible mesh peers.
677 *
678 * @NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES: the number of action frames
679 * containing a PREQ that an MP can send to a particular destination (path
680 * target)
681 *
682 * @NL80211_MESHCONF_PATH_REFRESH_TIME: how frequently to refresh mesh paths
683 * (in milliseconds)
684 *
685 * @NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT: minimum length of time to wait
686 * until giving up on a path discovery (in milliseconds)
687 *
688 * @NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT: The time (in TUs) for which mesh
689 * points receiving a PREQ shall consider the forwarding information from the
690 * root to be valid. (TU = time unit)
691 *
692 * @NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL: The minimum interval of time (in
693 * TUs) during which an MP can send only one action frame containing a PREQ
694 * reference element
695 *
696 * @NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME: The interval of time (in TUs)
697 * that it takes for an HWMP information element to propagate across the mesh
698 *
699 * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute
700 *
701 * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
702 */
703enum nl80211_meshconf_params {
704 __NL80211_MESHCONF_INVALID,
705 NL80211_MESHCONF_RETRY_TIMEOUT,
706 NL80211_MESHCONF_CONFIRM_TIMEOUT,
707 NL80211_MESHCONF_HOLDING_TIMEOUT,
708 NL80211_MESHCONF_MAX_PEER_LINKS,
709 NL80211_MESHCONF_MAX_RETRIES,
710 NL80211_MESHCONF_TTL,
711 NL80211_MESHCONF_AUTO_OPEN_PLINKS,
712 NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
713 NL80211_MESHCONF_PATH_REFRESH_TIME,
714 NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
715 NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
716 NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
717 NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
718
719 /* keep last */
720 __NL80211_MESHCONF_ATTR_AFTER_LAST,
721 NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1
722};
723
Jouni Malinen31888482008-10-30 16:59:24 +0200724/**
725 * enum nl80211_txq_attr - TX queue parameter attributes
726 * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved
727 * @NL80211_TXQ_ATTR_QUEUE: TX queue identifier (NL80211_TXQ_Q_*)
728 * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning
729 * disabled
730 * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form
731 * 2^n-1 in the range 1..32767]
732 * @NL80211_TXQ_ATTR_CWMAX: Maximum contention window [a value of the form
733 * 2^n-1 in the range 1..32767]
734 * @NL80211_TXQ_ATTR_AIFS: Arbitration interframe space [0..255]
735 * @__NL80211_TXQ_ATTR_AFTER_LAST: Internal
736 * @NL80211_TXQ_ATTR_MAX: Maximum TXQ attribute number
737 */
738enum nl80211_txq_attr {
739 __NL80211_TXQ_ATTR_INVALID,
740 NL80211_TXQ_ATTR_QUEUE,
741 NL80211_TXQ_ATTR_TXOP,
742 NL80211_TXQ_ATTR_CWMIN,
743 NL80211_TXQ_ATTR_CWMAX,
744 NL80211_TXQ_ATTR_AIFS,
745
746 /* keep last */
747 __NL80211_TXQ_ATTR_AFTER_LAST,
748 NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1
749};
750
751enum nl80211_txq_q {
752 NL80211_TXQ_Q_VO,
753 NL80211_TXQ_Q_VI,
754 NL80211_TXQ_Q_BE,
755 NL80211_TXQ_Q_BK
756};
757
Jouni Malinen72bdcf32008-11-26 16:15:24 +0200758enum nl80211_sec_chan_offset {
759 NL80211_SEC_CHAN_NO_HT /* No HT */,
760 NL80211_SEC_CHAN_DISABLED /* HT20 only */,
761 NL80211_SEC_CHAN_BELOW /* HT40- */,
762 NL80211_SEC_CHAN_ABOVE /* HT40+ */
763};
Johannes Berg704232c2007-04-23 12:20:05 -0700764#endif /* __LINUX_NL80211_H */