aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nl80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nl80211.h')
-rw-r--r--include/linux/nl80211.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 9fecf902419c..a9f0b93324a2 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -161,6 +161,12 @@ enum nl80211_commands {
161 * given for %NL80211_CMD_GET_STATION, nested attribute containing 161 * given for %NL80211_CMD_GET_STATION, nested attribute containing
162 * info as possible, see &enum nl80211_sta_stats. 162 * info as possible, see &enum nl80211_sta_stats.
163 * 163 *
164 * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands,
165 * consisting of a nested array.
166 *
167 * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of
168 * &enum nl80211_mntr_flags.
169 *
164 * @NL80211_ATTR_MAX: highest attribute number currently defined 170 * @NL80211_ATTR_MAX: highest attribute number currently defined
165 * @__NL80211_ATTR_AFTER_LAST: internal use 171 * @__NL80211_ATTR_AFTER_LAST: internal use
166 */ 172 */
@@ -195,6 +201,10 @@ enum nl80211_attrs {
195 NL80211_ATTR_STA_VLAN, 201 NL80211_ATTR_STA_VLAN,
196 NL80211_ATTR_STA_STATS, 202 NL80211_ATTR_STA_STATS,
197 203
204 NL80211_ATTR_WIPHY_BANDS,
205
206 NL80211_ATTR_MNTR_FLAGS,
207
198 /* add attributes here, update the policy in nl80211.c */ 208 /* add attributes here, update the policy in nl80211.c */
199 209
200 __NL80211_ATTR_AFTER_LAST, 210 __NL80211_ATTR_AFTER_LAST,
@@ -280,4 +290,93 @@ enum nl80211_sta_stats {
280 NL80211_STA_STAT_MAX = __NL80211_STA_STAT_AFTER_LAST - 1 290 NL80211_STA_STAT_MAX = __NL80211_STA_STAT_AFTER_LAST - 1
281}; 291};
282 292
293/**
294 * enum nl80211_band_attr - band attributes
295 * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved
296 * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band,
297 * an array of nested frequency attributes
298 * @NL80211_BAND_ATTR_RATES: supported bitrates in this band,
299 * an array of nested bitrate attributes
300 */
301enum nl80211_band_attr {
302 __NL80211_BAND_ATTR_INVALID,
303 NL80211_BAND_ATTR_FREQS,
304 NL80211_BAND_ATTR_RATES,
305
306 /* keep last */
307 __NL80211_BAND_ATTR_AFTER_LAST,
308 NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1
309};
310
311/**
312 * enum nl80211_frequency_attr - frequency attributes
313 * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
314 * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
315 * regulatory domain.
316 * @NL80211_FREQUENCY_ATTR_PASSIVE_SCAN: Only passive scanning is
317 * permitted on this channel in current regulatory domain.
318 * @NL80211_FREQUENCY_ATTR_NO_IBSS: IBSS networks are not permitted
319 * on this channel in current regulatory domain.
320 * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
321 * on this channel in current regulatory domain.
322 */
323enum nl80211_frequency_attr {
324 __NL80211_FREQUENCY_ATTR_INVALID,
325 NL80211_FREQUENCY_ATTR_FREQ,
326 NL80211_FREQUENCY_ATTR_DISABLED,
327 NL80211_FREQUENCY_ATTR_PASSIVE_SCAN,
328 NL80211_FREQUENCY_ATTR_NO_IBSS,
329 NL80211_FREQUENCY_ATTR_RADAR,
330
331 /* keep last */
332 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
333 NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1
334};
335
336/**
337 * enum nl80211_bitrate_attr - bitrate attributes
338 * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps
339 * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported
340 * in 2.4 GHz band.
341 */
342enum nl80211_bitrate_attr {
343 __NL80211_BITRATE_ATTR_INVALID,
344 NL80211_BITRATE_ATTR_RATE,
345 NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE,
346
347 /* keep last */
348 __NL80211_BITRATE_ATTR_AFTER_LAST,
349 NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1
350};
351
352/**
353 * enum nl80211_mntr_flags - monitor configuration flags
354 *
355 * Monitor configuration flags.
356 *
357 * @__NL80211_MNTR_FLAG_INVALID: reserved
358 *
359 * @NL80211_MNTR_FLAG_FCSFAIL: pass frames with bad FCS
360 * @NL80211_MNTR_FLAG_PLCPFAIL: pass frames with bad PLCP
361 * @NL80211_MNTR_FLAG_CONTROL: pass control frames
362 * @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
363 * @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
364 * overrides all other flags.
365 *
366 * @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
367 * @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
368 */
369enum nl80211_mntr_flags {
370 __NL80211_MNTR_FLAG_INVALID,
371 NL80211_MNTR_FLAG_FCSFAIL,
372 NL80211_MNTR_FLAG_PLCPFAIL,
373 NL80211_MNTR_FLAG_CONTROL,
374 NL80211_MNTR_FLAG_OTHER_BSS,
375 NL80211_MNTR_FLAG_COOK_FRAMES,
376
377 /* keep last */
378 __NL80211_MNTR_FLAG_AFTER_LAST,
379 NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
380};
381
283#endif /* __LINUX_NL80211_H */ 382#endif /* __LINUX_NL80211_H */