blob: d056f83a915859d087557b77aad64257049cfccb [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
Jesper Juhl921cd682012-06-25 01:56:05 +020044int iwctl_siwap(struct net_device *dev, struct iw_request_info *info,
45 struct sockaddr *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040046
Jesper Juhl921cd682012-06-25 01:56:05 +020047void iwctl_giwrange(struct net_device *dev, struct iw_request_info *info,
48 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040049
Jesper Juhl921cd682012-06-25 01:56:05 +020050void iwctl_giwmode(struct net_device *dev, struct iw_request_info *info,
51 __u32 *wmode, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040052
Jesper Juhl921cd682012-06-25 01:56:05 +020053int iwctl_siwmode(struct net_device *dev, struct iw_request_info *info,
54 __u32 *wmode, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040055
Jesper Juhl921cd682012-06-25 01:56:05 +020056int iwctl_giwfreq(struct net_device *dev, struct iw_request_info *info,
57 struct iw_freq *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040058
Jesper Juhl921cd682012-06-25 01:56:05 +020059int iwctl_siwfreq(struct net_device *dev, struct iw_request_info *info,
60 struct iw_freq *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040061
Jesper Juhl921cd682012-06-25 01:56:05 +020062int iwctl_giwname(struct net_device *dev, struct iw_request_info *info,
63 char *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040064
Jesper Juhl921cd682012-06-25 01:56:05 +020065int iwctl_giwsens(struct net_device *dev, struct iw_request_info *info,
66 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040067
Jesper Juhl921cd682012-06-25 01:56:05 +020068int iwctl_giwap(struct net_device *dev, struct iw_request_info *info,
69 struct sockaddr *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040070
Jesper Juhl921cd682012-06-25 01:56:05 +020071int iwctl_giwaplist(struct net_device *dev, struct iw_request_info *info,
72 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040073
Jesper Juhl921cd682012-06-25 01:56:05 +020074int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info,
75 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040076
Jesper Juhl921cd682012-06-25 01:56:05 +020077void iwctl_giwessid(struct net_device *dev, struct iw_request_info *info,
78 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040079
Jesper Juhl921cd682012-06-25 01:56:05 +020080int iwctl_siwrate(struct net_device *dev, struct iw_request_info *info,
81 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040082
Jesper Juhl921cd682012-06-25 01:56:05 +020083void iwctl_giwrate(struct net_device *dev, struct iw_request_info *info,
84 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040085
Jesper Juhl921cd682012-06-25 01:56:05 +020086int iwctl_siwrts(struct net_device *dev, struct iw_param *wrq);
Forest Bond92b96792009-06-13 07:38:31 -040087
Jesper Juhl921cd682012-06-25 01:56:05 +020088int iwctl_giwrts(struct net_device *dev, struct iw_request_info *info,
89 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040090
Jesper Juhl921cd682012-06-25 01:56:05 +020091int iwctl_siwfrag(struct net_device *dev, struct iw_request_info *info,
92 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040093
Jesper Juhl921cd682012-06-25 01:56:05 +020094int iwctl_giwfrag(struct net_device *dev, struct iw_request_info *info,
95 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040096
Jesper Juhl921cd682012-06-25 01:56:05 +020097int iwctl_siwretry(struct net_device *dev, struct iw_request_info *info,
98 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -040099
Jesper Juhl921cd682012-06-25 01:56:05 +0200100int iwctl_giwretry(struct net_device *dev, struct iw_request_info *info,
101 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400102
Jesper Juhl921cd682012-06-25 01:56:05 +0200103int iwctl_siwencode(struct net_device *dev, struct iw_request_info *info,
104 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400105
Jesper Juhl921cd682012-06-25 01:56:05 +0200106int iwctl_giwencode(struct net_device *dev, struct iw_request_info *info,
107 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400108
Jesper Juhl921cd682012-06-25 01:56:05 +0200109int iwctl_siwpower(struct net_device *dev, struct iw_request_info *info,
110 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400111
Jesper Juhl921cd682012-06-25 01:56:05 +0200112int iwctl_giwpower(struct net_device *dev, struct iw_request_info *info,
113 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400114
Jesper Juhl921cd682012-06-25 01:56:05 +0200115int iwctl_giwscan(struct net_device *dev, struct iw_request_info *info,
116 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400117
Jesper Juhl921cd682012-06-25 01:56:05 +0200118int iwctl_siwscan(struct net_device *dev, struct iw_request_info *info,
119 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400120
Forest Bond92b96792009-06-13 07:38:31 -0400121#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
Jesper Juhl921cd682012-06-25 01:56:05 +0200122int iwctl_siwauth(struct net_device *dev, struct iw_request_info *info,
123 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400124
Jesper Juhl921cd682012-06-25 01:56:05 +0200125int iwctl_giwauth(struct net_device *dev, struct iw_request_info *info,
126 struct iw_param *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400127
Jesper Juhl921cd682012-06-25 01:56:05 +0200128int iwctl_siwgenie(struct net_device *dev, struct iw_request_info *info,
129 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400130
Jesper Juhl921cd682012-06-25 01:56:05 +0200131int iwctl_giwgenie(struct net_device *dev, struct iw_request_info *info,
132 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400133
Jesper Juhl921cd682012-06-25 01:56:05 +0200134int iwctl_siwencodeext(struct net_device *dev, struct iw_request_info *info,
135 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400136
Jesper Juhl921cd682012-06-25 01:56:05 +0200137int iwctl_giwencodeext(struct net_device *dev, struct iw_request_info *info,
138 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400139
Jesper Juhl921cd682012-06-25 01:56:05 +0200140int iwctl_siwmlme(struct net_device *dev, struct iw_request_info *info,
141 struct iw_point *wrq, char *extra);
Forest Bond92b96792009-06-13 07:38:31 -0400142#endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
Forest Bond92b96792009-06-13 07:38:31 -0400143
Jesper Juhlc91a8d52012-06-25 01:56:43 +0200144extern const struct iw_handler_def iwctl_handler_def;
145extern const struct iw_priv_args iwctl_private_args;
Forest Bond92b96792009-06-13 07:38:31 -0400146
Andres Moree7b07d12010-05-01 19:12:26 -0300147#endif /* __IWCTL_H__ */