- added package list function
[openwrt.git] / package / mac80211 / patches / 008-add-hostapd-ioctl-header.patch
1 ---
2 net/mac80211/hostapd_ioctl.h | 103 +++++++++++++++++++++++++++++++++++++++++++
3 1 file changed, 103 insertions(+)
4
5 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
6 +++ everything/net/mac80211/hostapd_ioctl.h 2007-11-07 13:19:23.031516330 +0100
7 @@ -0,0 +1,103 @@
8 +/*
9 + * Host AP (software wireless LAN access point) user space daemon for
10 + * Host AP kernel driver
11 + * Copyright 2002-2003, Jouni Malinen <jkmaline@cc.hut.fi>
12 + * Copyright 2002-2004, Instant802 Networks, Inc.
13 + * Copyright 2005, Devicescape Software, Inc.
14 + *
15 + * This program is free software; you can redistribute it and/or modify
16 + * it under the terms of the GNU General Public License version 2 as
17 + * published by the Free Software Foundation.
18 + */
19 +
20 +#ifndef HOSTAPD_IOCTL_H
21 +#define HOSTAPD_IOCTL_H
22 +
23 +#ifdef __KERNEL__
24 +#include <linux/types.h>
25 +#endif /* __KERNEL__ */
26 +
27 +#define PRISM2_IOCTL_PRISM2_PARAM (SIOCIWFIRSTPRIV + 0)
28 +#define PRISM2_IOCTL_GET_PRISM2_PARAM (SIOCIWFIRSTPRIV + 1)
29 +#define PRISM2_IOCTL_HOSTAPD (SIOCIWFIRSTPRIV + 3)
30 +
31 +/* PRISM2_IOCTL_PRISM2_PARAM ioctl() subtypes:
32 + * This table is no longer added to, the whole sub-ioctl
33 + * mess shall be deleted completely. */
34 +enum {
35 + PRISM2_PARAM_AP_BRIDGE_PACKETS = 10,
36 + PRISM2_PARAM_IEEE_802_1X = 23,
37 +
38 + /* Instant802 additions */
39 + PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES = 1001,
40 + PRISM2_PARAM_PREAMBLE = 1003,
41 + PRISM2_PARAM_SHORT_SLOT_TIME = 1006,
42 + PRISM2_PARAM_NEXT_MODE = 1008,
43 + PRISM2_PARAM_PRIVACY_INVOKED = 1014,
44 + PRISM2_PARAM_EAPOL = 1023,
45 + PRISM2_PARAM_MGMT_IF = 1046,
46 +};
47 +
48 +/* PRISM2_IOCTL_HOSTAPD ioctl() cmd:
49 + * This table is no longer added to, the hostapd ioctl
50 + * shall be deleted completely. */
51 +enum {
52 + PRISM2_HOSTAPD_FLUSH = 1,
53 +
54 + /* Instant802 additions */
55 + PRISM2_HOSTAPD_GET_HW_FEATURES = 1002,
56 + PRISM2_HOSTAPD_SET_RATE_SETS = 1005,
57 + PRISM2_HOSTAPD_SET_CHANNEL_FLAG = 1012,
58 + PRISM2_HOSTAPD_SET_REGULATORY_DOMAIN = 1013,
59 + PRISM2_HOSTAPD_SET_TX_QUEUE_PARAMS = 1014,
60 +};
61 +
62 +#define PRISM2_HOSTAPD_MAX_BUF_SIZE 2048
63 +#define ALIGNED __attribute__ ((aligned))
64 +
65 +struct prism2_hostapd_param {
66 + u32 cmd;
67 + u8 sta_addr[ETH_ALEN];
68 + u8 pad[2];
69 + union {
70 + struct {
71 + u16 num_modes;
72 + u16 flags;
73 + u8 data[0] ALIGNED; /* num_modes * feature data */
74 + } hw_features;
75 + struct {
76 + u16 mode; /* MODE_* */
77 + u16 num_supported_rates;
78 + u16 num_basic_rates;
79 + u8 data[0] ALIGNED; /* num_supported_rates * u16 +
80 + * num_basic_rates * u16 */
81 + } set_rate_sets;
82 + struct {
83 + u16 mode; /* MODE_* */
84 + u16 chan;
85 + u32 flag;
86 + u8 power_level; /* regulatory limit in dBm */
87 + u8 antenna_max;
88 + } set_channel_flag;
89 + struct {
90 + u32 rd;
91 + } set_regulatory_domain;
92 + struct {
93 + u32 queue;
94 + s32 aifs;
95 + u32 cw_min;
96 + u32 cw_max;
97 + u32 burst_time; /* maximum burst time in 0.1 ms, i.e.,
98 + * 10 = 1 ms */
99 + } tx_queue_params;
100 + } u;
101 +};
102 +
103 +/* Data structures used for get_hw_features ioctl */
104 +struct hostapd_ioctl_hw_modes_hdr {
105 + int mode;
106 + int num_channels;
107 + int num_rates;
108 +};
109 +
110 +#endif /* HOSTAPD_IOCTL_H */
This page took 0.042649 seconds and 5 git commands to generate.