diff options
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r-- | include/linux/nl80211.h | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index e86ed59f9ad5..76aae3d8e97e 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -47,7 +47,7 @@ | |||
47 | * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or | 47 | * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or |
48 | * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME, | 48 | * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME, |
49 | * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ, and/or | 49 | * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ, and/or |
50 | * %NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET. | 50 | * %NL80211_ATTR_WIPHY_CHANNEL_TYPE. |
51 | * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request | 51 | * @NL80211_CMD_NEW_WIPHY: Newly created wiphy, response to get request |
52 | * or rename notification. Has attributes %NL80211_ATTR_WIPHY and | 52 | * or rename notification. Has attributes %NL80211_ATTR_WIPHY and |
53 | * %NL80211_ATTR_WIPHY_NAME. | 53 | * %NL80211_ATTR_WIPHY_NAME. |
@@ -72,8 +72,8 @@ | |||
72 | * | 72 | * |
73 | * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified | 73 | * @NL80211_CMD_GET_KEY: Get sequence counter information for a key specified |
74 | * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. | 74 | * by %NL80211_ATTR_KEY_IDX and/or %NL80211_ATTR_MAC. |
75 | * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT or | 75 | * @NL80211_CMD_SET_KEY: Set key attributes %NL80211_ATTR_KEY_DEFAULT, |
76 | * %NL80211_ATTR_KEY_THRESHOLD. | 76 | * %NL80211_ATTR_KEY_DEFAULT_MGMT, or %NL80211_ATTR_KEY_THRESHOLD. |
77 | * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, | 77 | * @NL80211_CMD_NEW_KEY: add a key with given %NL80211_ATTR_KEY_DATA, |
78 | * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC and %NL80211_ATTR_KEY_CIPHER | 78 | * %NL80211_ATTR_KEY_IDX, %NL80211_ATTR_MAC and %NL80211_ATTR_KEY_CIPHER |
79 | * attributes. | 79 | * attributes. |
@@ -84,7 +84,7 @@ | |||
84 | * %NL80222_CMD_NEW_BEACON message) | 84 | * %NL80222_CMD_NEW_BEACON message) |
85 | * @NL80211_CMD_SET_BEACON: set the beacon on an access point interface | 85 | * @NL80211_CMD_SET_BEACON: set the beacon on an access point interface |
86 | * using the %NL80211_ATTR_BEACON_INTERVAL, %NL80211_ATTR_DTIM_PERIOD, | 86 | * using the %NL80211_ATTR_BEACON_INTERVAL, %NL80211_ATTR_DTIM_PERIOD, |
87 | * %NL80211_BEACON_HEAD and %NL80211_BEACON_TAIL attributes. | 87 | * %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL attributes. |
88 | * @NL80211_CMD_NEW_BEACON: add a new beacon to an access point interface, | 88 | * @NL80211_CMD_NEW_BEACON: add a new beacon to an access point interface, |
89 | * parameters are like for %NL80211_CMD_SET_BEACON. | 89 | * parameters are like for %NL80211_CMD_SET_BEACON. |
90 | * @NL80211_CMD_DEL_BEACON: remove the beacon, stop sending it | 90 | * @NL80211_CMD_DEL_BEACON: remove the beacon, stop sending it |
@@ -133,6 +133,14 @@ | |||
133 | * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the | 133 | * @NL80211_CMD_SET_MESH_PARAMS: Set mesh networking properties for the |
134 | * interface identified by %NL80211_ATTR_IFINDEX | 134 | * interface identified by %NL80211_ATTR_IFINDEX |
135 | * | 135 | * |
136 | * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The | ||
137 | * interface is identified with %NL80211_ATTR_IFINDEX and the management | ||
138 | * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be | ||
139 | * added to the end of the specified management frame is specified with | ||
140 | * %NL80211_ATTR_IE. If the command succeeds, the requested data will be | ||
141 | * added to all specified management frames generated by | ||
142 | * kernel/firmware/driver. | ||
143 | * | ||
136 | * @NL80211_CMD_MAX: highest used command number | 144 | * @NL80211_CMD_MAX: highest used command number |
137 | * @__NL80211_CMD_AFTER_LAST: internal use | 145 | * @__NL80211_CMD_AFTER_LAST: internal use |
138 | */ | 146 | */ |
@@ -178,6 +186,8 @@ enum nl80211_commands { | |||
178 | NL80211_CMD_GET_MESH_PARAMS, | 186 | NL80211_CMD_GET_MESH_PARAMS, |
179 | NL80211_CMD_SET_MESH_PARAMS, | 187 | NL80211_CMD_SET_MESH_PARAMS, |
180 | 188 | ||
189 | NL80211_CMD_SET_MGMT_EXTRA_IE, | ||
190 | |||
181 | /* add new commands above here */ | 191 | /* add new commands above here */ |
182 | 192 | ||
183 | /* used to define NL80211_CMD_MAX below */ | 193 | /* used to define NL80211_CMD_MAX below */ |
@@ -190,6 +200,7 @@ enum nl80211_commands { | |||
190 | * here | 200 | * here |
191 | */ | 201 | */ |
192 | #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS | 202 | #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS |
203 | #define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE | ||
193 | 204 | ||
194 | /** | 205 | /** |
195 | * enum nl80211_attrs - nl80211 netlink attributes | 206 | * enum nl80211_attrs - nl80211 netlink attributes |
@@ -284,6 +295,12 @@ enum nl80211_commands { | |||
284 | * supported interface types, each a flag attribute with the number | 295 | * supported interface types, each a flag attribute with the number |
285 | * of the interface mode. | 296 | * of the interface mode. |
286 | * | 297 | * |
298 | * @NL80211_ATTR_MGMT_SUBTYPE: Management frame subtype for | ||
299 | * %NL80211_CMD_SET_MGMT_EXTRA_IE. | ||
300 | * | ||
301 | * @NL80211_ATTR_IE: Information element(s) data (used, e.g., with | ||
302 | * %NL80211_CMD_SET_MGMT_EXTRA_IE). | ||
303 | * | ||
287 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 304 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
288 | * @__NL80211_ATTR_AFTER_LAST: internal use | 305 | * @__NL80211_ATTR_AFTER_LAST: internal use |
289 | */ | 306 | */ |
@@ -346,6 +363,11 @@ enum nl80211_attrs { | |||
346 | NL80211_ATTR_WIPHY_FREQ, | 363 | NL80211_ATTR_WIPHY_FREQ, |
347 | NL80211_ATTR_WIPHY_CHANNEL_TYPE, | 364 | NL80211_ATTR_WIPHY_CHANNEL_TYPE, |
348 | 365 | ||
366 | NL80211_ATTR_KEY_DEFAULT_MGMT, | ||
367 | |||
368 | NL80211_ATTR_MGMT_SUBTYPE, | ||
369 | NL80211_ATTR_IE, | ||
370 | |||
349 | /* add attributes here, update the policy in nl80211.c */ | 371 | /* add attributes here, update the policy in nl80211.c */ |
350 | 372 | ||
351 | __NL80211_ATTR_AFTER_LAST, | 373 | __NL80211_ATTR_AFTER_LAST, |
@@ -360,7 +382,9 @@ enum nl80211_attrs { | |||
360 | #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES | 382 | #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES |
361 | #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS | 383 | #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS |
362 | #define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ | 384 | #define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ |
363 | #define NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET NL80211_ATTR_WIPHY_SEC_CHAN_OFFSET | 385 | #define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE |
386 | #define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE | ||
387 | #define NL80211_ATTR_IE NL80211_ATTR_IE | ||
364 | 388 | ||
365 | #define NL80211_MAX_SUPP_RATES 32 | 389 | #define NL80211_MAX_SUPP_RATES 32 |
366 | #define NL80211_MAX_SUPP_REG_RULES 32 | 390 | #define NL80211_MAX_SUPP_REG_RULES 32 |
@@ -412,12 +436,14 @@ enum nl80211_iftype { | |||
412 | * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames | 436 | * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames |
413 | * with short barker preamble | 437 | * with short barker preamble |
414 | * @NL80211_STA_FLAG_WME: station is WME/QoS capable | 438 | * @NL80211_STA_FLAG_WME: station is WME/QoS capable |
439 | * @NL80211_STA_FLAG_MFP: station uses management frame protection | ||
415 | */ | 440 | */ |
416 | enum nl80211_sta_flags { | 441 | enum nl80211_sta_flags { |
417 | __NL80211_STA_FLAG_INVALID, | 442 | __NL80211_STA_FLAG_INVALID, |
418 | NL80211_STA_FLAG_AUTHORIZED, | 443 | NL80211_STA_FLAG_AUTHORIZED, |
419 | NL80211_STA_FLAG_SHORT_PREAMBLE, | 444 | NL80211_STA_FLAG_SHORT_PREAMBLE, |
420 | NL80211_STA_FLAG_WME, | 445 | NL80211_STA_FLAG_WME, |
446 | NL80211_STA_FLAG_MFP, | ||
421 | 447 | ||
422 | /* keep last */ | 448 | /* keep last */ |
423 | __NL80211_STA_FLAG_AFTER_LAST, | 449 | __NL80211_STA_FLAG_AFTER_LAST, |