[MAC80211]: avoid copying packets to interfaces that are down
[deliverable/linux.git] / net / mac80211 / hostapd_ioctl.h
CommitLineData
f0706e82
JB
1/*
2 * Host AP (software wireless LAN access point) user space daemon for
3 * Host AP kernel driver
4 * Copyright 2002-2003, Jouni Malinen <jkmaline@cc.hut.fi>
5 * Copyright 2002-2004, Instant802 Networks, Inc.
6 * Copyright 2005, Devicescape Software, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#ifndef HOSTAPD_IOCTL_H
14#define HOSTAPD_IOCTL_H
15
16#ifdef __KERNEL__
17#include <linux/types.h>
18#endif /* __KERNEL__ */
19
20#define PRISM2_IOCTL_PRISM2_PARAM (SIOCIWFIRSTPRIV + 0)
21#define PRISM2_IOCTL_GET_PRISM2_PARAM (SIOCIWFIRSTPRIV + 1)
22#define PRISM2_IOCTL_HOSTAPD (SIOCIWFIRSTPRIV + 3)
23
24/* PRISM2_IOCTL_PRISM2_PARAM ioctl() subtypes:
25 * This table is no longer added to, the whole sub-ioctl
26 * mess shall be deleted completely. */
27enum {
28 PRISM2_PARAM_IEEE_802_1X = 23,
f0706e82
JB
29
30 /* Instant802 additions */
31 PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES = 1001,
f0706e82
JB
32 PRISM2_PARAM_PREAMBLE = 1003,
33 PRISM2_PARAM_SHORT_SLOT_TIME = 1006,
34 PRISM2_PARAM_NEXT_MODE = 1008,
f0706e82
JB
35 PRISM2_PARAM_RADIO_ENABLED = 1010,
36 PRISM2_PARAM_ANTENNA_MODE = 1013,
37 PRISM2_PARAM_STAT_TIME = 1016,
38 PRISM2_PARAM_STA_ANTENNA_SEL = 1017,
f0706e82
JB
39 PRISM2_PARAM_TX_POWER_REDUCTION = 1022,
40 PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024,
41 PRISM2_PARAM_DEFAULT_WEP_ONLY = 1026,
42 PRISM2_PARAM_WIFI_WME_NOACK_TEST = 1033,
43 PRISM2_PARAM_SCAN_FLAGS = 1035,
44 PRISM2_PARAM_HW_MODES = 1036,
45 PRISM2_PARAM_CREATE_IBSS = 1037,
46 PRISM2_PARAM_WMM_ENABLED = 1038,
47 PRISM2_PARAM_MIXED_CELL = 1039,
48 PRISM2_PARAM_RADAR_DETECT = 1043,
49 PRISM2_PARAM_SPECTRUM_MGMT = 1044,
50};
51
52enum {
53 IEEE80211_KEY_MGMT_NONE = 0,
54 IEEE80211_KEY_MGMT_IEEE8021X = 1,
55 IEEE80211_KEY_MGMT_WPA_PSK = 2,
56 IEEE80211_KEY_MGMT_WPA_EAP = 3,
57};
58
59
60/* Data structures used for get_hw_features ioctl */
61struct hostapd_ioctl_hw_modes_hdr {
62 int mode;
63 int num_channels;
64 int num_rates;
65};
66
67struct ieee80211_channel_data {
68 short chan; /* channel number (IEEE 802.11) */
69 short freq; /* frequency in MHz */
70 int flag; /* flag for hostapd use (IEEE80211_CHAN_*) */
71};
72
73struct ieee80211_rate_data {
74 int rate; /* rate in 100 kbps */
75 int flags; /* IEEE80211_RATE_ flags */
76};
77
78
79/* ADD_IF, REMOVE_IF, and UPDATE_IF 'type' argument */
80enum {
81 HOSTAP_IF_WDS = 1, HOSTAP_IF_VLAN = 2, HOSTAP_IF_BSS = 3,
82 HOSTAP_IF_STA = 4
83};
84
85struct hostapd_if_wds {
86 u8 remote_addr[ETH_ALEN];
87};
88
89struct hostapd_if_vlan {
90 u8 id;
91};
92
93struct hostapd_if_bss {
94 u8 bssid[ETH_ALEN];
95};
96
97struct hostapd_if_sta {
98};
99
100#endif /* HOSTAPD_IOCTL_H */
This page took 0.085025 seconds and 5 git commands to generate.