blob: d43711aff4c5bcb3e2c3d8c933cf44f402e49952 [file] [log] [blame]
Jiri Bencf0706e82007-05-05 11:45:53 -07001/*
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,
Jiri Bencf0706e82007-05-05 11:45:53 -070029
30 /* Instant802 additions */
31 PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES = 1001,
Jiri Bencf0706e82007-05-05 11:45:53 -070032 PRISM2_PARAM_PREAMBLE = 1003,
33 PRISM2_PARAM_SHORT_SLOT_TIME = 1006,
34 PRISM2_PARAM_NEXT_MODE = 1008,
Jiri Bencf0706e82007-05-05 11:45:53 -070035 PRISM2_PARAM_KEY_TX_RX_THRESHOLD = 1024,
Jiri Bencf0706e82007-05-05 11:45:53 -070036 PRISM2_PARAM_WIFI_WME_NOACK_TEST = 1033,
37 PRISM2_PARAM_SCAN_FLAGS = 1035,
38 PRISM2_PARAM_HW_MODES = 1036,
39 PRISM2_PARAM_CREATE_IBSS = 1037,
40 PRISM2_PARAM_WMM_ENABLED = 1038,
41 PRISM2_PARAM_MIXED_CELL = 1039,
Jiri Bencf0706e82007-05-05 11:45:53 -070042};
43
Jiri Bencf0706e82007-05-05 11:45:53 -070044/* Data structures used for get_hw_features ioctl */
45struct hostapd_ioctl_hw_modes_hdr {
46 int mode;
47 int num_channels;
48 int num_rates;
49};
50
51struct ieee80211_channel_data {
52 short chan; /* channel number (IEEE 802.11) */
53 short freq; /* frequency in MHz */
54 int flag; /* flag for hostapd use (IEEE80211_CHAN_*) */
55};
56
57struct ieee80211_rate_data {
58 int rate; /* rate in 100 kbps */
59 int flags; /* IEEE80211_RATE_ flags */
60};
61
62
63/* ADD_IF, REMOVE_IF, and UPDATE_IF 'type' argument */
64enum {
65 HOSTAP_IF_WDS = 1, HOSTAP_IF_VLAN = 2, HOSTAP_IF_BSS = 3,
66 HOSTAP_IF_STA = 4
67};
68
69struct hostapd_if_wds {
70 u8 remote_addr[ETH_ALEN];
71};
72
73struct hostapd_if_vlan {
74 u8 id;
75};
76
77struct hostapd_if_bss {
78 u8 bssid[ETH_ALEN];
79};
80
81struct hostapd_if_sta {
82};
83
84#endif /* HOSTAPD_IOCTL_H */