blob: 0c6e0496779b888f852937c2b64a1cc84c3f26b2 [file] [log] [blame]
Forest Bond92b96792009-06-13 07:38:31 -04001/*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * File: iwctl.h
20 *
21 * Purpose:
22 *
23 * Author: Lyndon Chen
24 *
25 * Date: May 21, 2004
26 *
27 */
28
Forest Bond92b96792009-06-13 07:38:31 -040029#ifndef __IWCTL_H__
30#define __IWCTL_H__
31
Forest Bond92b96792009-06-13 07:38:31 -040032#include "device.h"
Forest Bond92b96792009-06-13 07:38:31 -040033
34/*--------------------- Export Definitions -------------------------*/
35
Forest Bond92b96792009-06-13 07:38:31 -040036/*--------------------- Export Classes ----------------------------*/
37
38/*--------------------- Export Variables --------------------------*/
39
40/*--------------------- Export Functions --------------------------*/
41
Andres Mored9d1ccb2010-05-26 20:00:36 -030042struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev);
Forest Bond92b96792009-06-13 07:38:31 -040043
44int iwctl_siwap(struct net_device *dev,
45 struct iw_request_info *info,
46 struct sockaddr *wrq,
47 char *extra);
48
Marcos Paulo de Souzaf9b9f932011-12-28 21:10:50 +000049void iwctl_giwrange(struct net_device *dev,
Forest Bond92b96792009-06-13 07:38:31 -040050 struct iw_request_info *info,
51 struct iw_point *wrq,
52 char *extra);
53
54
Marcos Paulo de Souza5d11b172011-12-28 21:09:13 +000055void iwctl_giwmode(struct net_device *dev,
Forest Bond92b96792009-06-13 07:38:31 -040056 struct iw_request_info *info,
57 __u32 *wmode,
58 char *extra);
59
60int iwctl_siwmode(struct net_device *dev,
61 struct iw_request_info *info,
62 __u32 *wmode,
63 char *extra);
64
65int iwctl_giwfreq(struct net_device *dev,
66 struct iw_request_info *info,
67 struct iw_freq *wrq,
68 char *extra);
69
70int iwctl_siwfreq(struct net_device *dev,
71 struct iw_request_info *info,
72 struct iw_freq *wrq,
73 char *extra);
74
75int iwctl_giwname(struct net_device *dev,
76 struct iw_request_info *info,
77 char *wrq,
78 char *extra);
79
Forest Bond92b96792009-06-13 07:38:31 -040080int iwctl_giwsens(struct net_device *dev,
81 struct iw_request_info *info,
82 struct iw_param *wrq,
83 char *extra);
84
85int iwctl_giwap(struct net_device *dev,
86 struct iw_request_info *info,
87 struct sockaddr *wrq,
88 char *extra);
89
90int iwctl_giwaplist(struct net_device *dev,
91 struct iw_request_info *info,
92 struct iw_point *wrq,
93 char *extra);
94
95int iwctl_siwessid(struct net_device *dev,
96 struct iw_request_info *info,
97 struct iw_point *wrq,
98 char *extra);
99
Marcos Paulo de Souzacaa20de2011-12-28 21:12:12 +0000100void iwctl_giwessid(struct net_device *dev,
Forest Bond92b96792009-06-13 07:38:31 -0400101 struct iw_request_info *info,
102 struct iw_point *wrq,
103 char *extra);
104
105int iwctl_siwrate(struct net_device *dev,
106 struct iw_request_info *info,
107 struct iw_param *wrq,
108 char *extra);
109
Marcos Paulo de Souza739ea072011-12-28 21:13:39 +0000110void iwctl_giwrate(struct net_device *dev,
Forest Bond92b96792009-06-13 07:38:31 -0400111 struct iw_request_info *info,
112 struct iw_param *wrq,
113 char *extra);
114
115int iwctl_siwrts(struct net_device *dev,
Marcos Paulo de Souza2fdde902011-12-28 21:18:31 +0000116 struct iw_param *wrq);
Forest Bond92b96792009-06-13 07:38:31 -0400117
118int iwctl_giwrts(struct net_device *dev,
119 struct iw_request_info *info,
120 struct iw_param *wrq,
121 char *extra);
122
123int iwctl_siwfrag(struct net_device *dev,
124 struct iw_request_info *info,
125 struct iw_param *wrq,
126 char *extra);
127
128int iwctl_giwfrag(struct net_device *dev,
129 struct iw_request_info *info,
130 struct iw_param *wrq,
131 char *extra);
132
133int iwctl_siwretry(struct net_device *dev,
134 struct iw_request_info *info,
135 struct iw_param *wrq,
136 char *extra);
137
138int iwctl_giwretry(struct net_device *dev,
139 struct iw_request_info *info,
140 struct iw_param *wrq,
141 char *extra);
142
143int iwctl_siwencode(struct net_device *dev,
144 struct iw_request_info *info,
145 struct iw_point *wrq,
146 char *extra);
147
148int iwctl_giwencode(struct net_device *dev,
149 struct iw_request_info *info,
150 struct iw_point *wrq,
151 char *extra);
152
153int iwctl_siwpower(struct net_device *dev,
154 struct iw_request_info *info,
155 struct iw_param *wrq,
156 char *extra);
157
158int iwctl_giwpower(struct net_device *dev,
159 struct iw_request_info *info,
160 struct iw_param *wrq,
161 char *extra);
162
163int iwctl_giwscan(struct net_device *dev,
164 struct iw_request_info *info,
165 struct iw_point *wrq,
166 char *extra);
167
168int iwctl_siwscan(struct net_device *dev,
169 struct iw_request_info *info,
170 struct iw_param *wrq,
171 char *extra);
172
Forest Bond92b96792009-06-13 07:38:31 -0400173#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
174int iwctl_siwauth(struct net_device *dev,
175 struct iw_request_info *info,
176 struct iw_param *wrq,
177 char *extra);
178
179int iwctl_giwauth(struct net_device *dev,
180 struct iw_request_info *info,
181 struct iw_param *wrq,
182 char *extra);
183
184int iwctl_siwgenie(struct net_device *dev,
185 struct iw_request_info *info,
186 struct iw_point *wrq,
187 char *extra);
188
189int iwctl_giwgenie(struct net_device *dev,
190 struct iw_request_info *info,
191 struct iw_point *wrq,
192 char *extra);
193
194int iwctl_siwencodeext(struct net_device *dev,
195 struct iw_request_info *info,
196 struct iw_point *wrq,
197 char *extra);
198
199int iwctl_giwencodeext(struct net_device *dev,
200 struct iw_request_info *info,
201 struct iw_point *wrq,
202 char *extra);
203
204int iwctl_siwmlme(struct net_device *dev,
205 struct iw_request_info * info,
206 struct iw_point *wrq,
207 char *extra);
208#endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
Forest Bond92b96792009-06-13 07:38:31 -0400209
Forest Bond92b96792009-06-13 07:38:31 -0400210extern const struct iw_handler_def iwctl_handler_def;
211extern const struct iw_priv_args iwctl_private_args;
Forest Bond92b96792009-06-13 07:38:31 -0400212
Andres Moree7b07d12010-05-01 19:12:26 -0300213#endif /* __IWCTL_H__ */