Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 1 | /* |
| 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 Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 29 | #ifndef __IWCTL_H__ |
| 30 | #define __IWCTL_H__ |
| 31 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 32 | #include "device.h" |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 33 | |
| 34 | /*--------------------- Export Definitions -------------------------*/ |
| 35 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 36 | /*--------------------- Export Classes ----------------------------*/ |
| 37 | |
| 38 | /*--------------------- Export Variables --------------------------*/ |
| 39 | |
| 40 | /*--------------------- Export Functions --------------------------*/ |
| 41 | |
Andres More | d9d1ccb | 2010-05-26 20:00:36 -0300 | [diff] [blame] | 42 | struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 43 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 44 | int iwctl_siwap(struct net_device *dev, struct iw_request_info *info, |
| 45 | struct sockaddr *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 46 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 47 | void iwctl_giwrange(struct net_device *dev, struct iw_request_info *info, |
| 48 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 49 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 50 | void iwctl_giwmode(struct net_device *dev, struct iw_request_info *info, |
| 51 | __u32 *wmode, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 52 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 53 | int iwctl_siwmode(struct net_device *dev, struct iw_request_info *info, |
| 54 | __u32 *wmode, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 55 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 56 | int iwctl_giwfreq(struct net_device *dev, struct iw_request_info *info, |
| 57 | struct iw_freq *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 58 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 59 | int iwctl_siwfreq(struct net_device *dev, struct iw_request_info *info, |
| 60 | struct iw_freq *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 61 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 62 | int iwctl_giwname(struct net_device *dev, struct iw_request_info *info, |
| 63 | char *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 64 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 65 | int iwctl_giwsens(struct net_device *dev, struct iw_request_info *info, |
| 66 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 67 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 68 | int iwctl_giwap(struct net_device *dev, struct iw_request_info *info, |
| 69 | struct sockaddr *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 70 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 71 | int iwctl_giwaplist(struct net_device *dev, struct iw_request_info *info, |
| 72 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 73 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 74 | int iwctl_siwessid(struct net_device *dev, struct iw_request_info *info, |
| 75 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 76 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 77 | void iwctl_giwessid(struct net_device *dev, struct iw_request_info *info, |
| 78 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 79 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 80 | int iwctl_siwrate(struct net_device *dev, struct iw_request_info *info, |
| 81 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 82 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 83 | void iwctl_giwrate(struct net_device *dev, struct iw_request_info *info, |
| 84 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 85 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 86 | int iwctl_siwrts(struct net_device *dev, struct iw_param *wrq); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 87 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 88 | int iwctl_giwrts(struct net_device *dev, struct iw_request_info *info, |
| 89 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 90 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 91 | int iwctl_siwfrag(struct net_device *dev, struct iw_request_info *info, |
| 92 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 93 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 94 | int iwctl_giwfrag(struct net_device *dev, struct iw_request_info *info, |
| 95 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 96 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 97 | int iwctl_siwretry(struct net_device *dev, struct iw_request_info *info, |
| 98 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 99 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 100 | int iwctl_giwretry(struct net_device *dev, struct iw_request_info *info, |
| 101 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 102 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 103 | int iwctl_siwencode(struct net_device *dev, struct iw_request_info *info, |
| 104 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 105 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 106 | int iwctl_giwencode(struct net_device *dev, struct iw_request_info *info, |
| 107 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 108 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 109 | int iwctl_siwpower(struct net_device *dev, struct iw_request_info *info, |
| 110 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 111 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 112 | int iwctl_giwpower(struct net_device *dev, struct iw_request_info *info, |
| 113 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 114 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 115 | int iwctl_giwscan(struct net_device *dev, struct iw_request_info *info, |
| 116 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 117 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 118 | int iwctl_siwscan(struct net_device *dev, struct iw_request_info *info, |
| 119 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 120 | |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 121 | #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 122 | int iwctl_siwauth(struct net_device *dev, struct iw_request_info *info, |
| 123 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 124 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 125 | int iwctl_giwauth(struct net_device *dev, struct iw_request_info *info, |
| 126 | struct iw_param *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 127 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 128 | int iwctl_siwgenie(struct net_device *dev, struct iw_request_info *info, |
| 129 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 130 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 131 | int iwctl_giwgenie(struct net_device *dev, struct iw_request_info *info, |
| 132 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 133 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 134 | int iwctl_siwencodeext(struct net_device *dev, struct iw_request_info *info, |
| 135 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 136 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 137 | int iwctl_giwencodeext(struct net_device *dev, struct iw_request_info *info, |
| 138 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 139 | |
Jesper Juhl | 921cd68 | 2012-06-25 01:56:05 +0200 | [diff] [blame] | 140 | int iwctl_siwmlme(struct net_device *dev, struct iw_request_info *info, |
| 141 | struct iw_point *wrq, char *extra); |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 142 | #endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 143 | |
Jesper Juhl | c91a8d5 | 2012-06-25 01:56:43 +0200 | [diff] [blame^] | 144 | extern const struct iw_handler_def iwctl_handler_def; |
| 145 | extern const struct iw_priv_args iwctl_private_args; |
Forest Bond | 92b9679 | 2009-06-13 07:38:31 -0400 | [diff] [blame] | 146 | |
Andres More | e7b07d1 | 2010-05-01 19:12:26 -0300 | [diff] [blame] | 147 | #endif /* __IWCTL_H__ */ |