Forest Bond | 5449c68 | 2009-04-25 10:30:44 -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 | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 29 | #ifndef __IWCTL_H__ |
| 30 | #define __IWCTL_H__ |
| 31 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 32 | #include "device.h" |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 33 | |
| 34 | /*--------------------- Export Definitions -------------------------*/ |
| 35 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 36 | /*--------------------- Export Classes ----------------------------*/ |
| 37 | |
| 38 | /*--------------------- Export Variables --------------------------*/ |
| 39 | |
| 40 | /*--------------------- Export Functions --------------------------*/ |
| 41 | |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 42 | struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 43 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 44 | int iwctl_siwap(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 45 | struct iw_request_info *info, |
| 46 | struct sockaddr *wrq, |
| 47 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 48 | |
| 49 | int iwctl_giwrange(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 50 | struct iw_request_info *info, |
| 51 | struct iw_point *wrq, |
| 52 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 53 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 54 | int iwctl_giwmode(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 55 | struct iw_request_info *info, |
| 56 | __u32 *wmode, |
| 57 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 58 | |
| 59 | int iwctl_siwmode(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 60 | struct iw_request_info *info, |
| 61 | __u32 *wmode, |
| 62 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 63 | |
| 64 | int iwctl_giwfreq(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 65 | struct iw_request_info *info, |
| 66 | struct iw_freq *wrq, |
| 67 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 68 | |
| 69 | int iwctl_siwfreq(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 70 | struct iw_request_info *info, |
| 71 | struct iw_freq *wrq, |
| 72 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 73 | |
| 74 | int iwctl_giwname(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 75 | struct iw_request_info *info, |
| 76 | char *wrq, |
| 77 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 78 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 79 | int iwctl_giwsens(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 80 | struct iw_request_info *info, |
| 81 | struct iw_param *wrq, |
| 82 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 83 | |
| 84 | int iwctl_giwap(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 85 | struct iw_request_info *info, |
| 86 | struct sockaddr *wrq, |
| 87 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 88 | |
| 89 | int iwctl_giwaplist(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 90 | struct iw_request_info *info, |
| 91 | struct iw_point *wrq, |
| 92 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 93 | |
| 94 | int iwctl_siwessid(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 95 | struct iw_request_info *info, |
| 96 | struct iw_point *wrq, |
| 97 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 98 | |
| 99 | int iwctl_giwessid(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 100 | struct iw_request_info *info, |
| 101 | struct iw_point *wrq, |
| 102 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 103 | |
| 104 | int iwctl_siwrate(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 105 | struct iw_request_info *info, |
| 106 | struct iw_param *wrq, |
| 107 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 108 | |
| 109 | int iwctl_giwrate(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 110 | struct iw_request_info *info, |
| 111 | struct iw_param *wrq, |
| 112 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 113 | |
| 114 | int iwctl_siwrts(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 115 | struct iw_request_info *info, |
| 116 | struct iw_param *wrq, |
| 117 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 118 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 119 | int iwctl_giwrts(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 120 | struct iw_request_info *info, |
| 121 | struct iw_param *wrq, |
| 122 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 123 | |
| 124 | int iwctl_siwfrag(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 125 | struct iw_request_info *info, |
| 126 | struct iw_param *wrq, |
| 127 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 128 | |
| 129 | int iwctl_giwfrag(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 130 | struct iw_request_info *info, |
| 131 | struct iw_param *wrq, |
| 132 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 133 | |
| 134 | int iwctl_siwretry(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 135 | struct iw_request_info *info, |
| 136 | struct iw_param *wrq, |
| 137 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 138 | |
| 139 | int iwctl_giwretry(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 140 | struct iw_request_info *info, |
| 141 | struct iw_param *wrq, |
| 142 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 143 | |
| 144 | int iwctl_siwencode(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 145 | struct iw_request_info *info, |
| 146 | struct iw_point *wrq, |
| 147 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 148 | |
| 149 | int iwctl_giwencode(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 150 | struct iw_request_info *info, |
| 151 | struct iw_point *wrq, |
| 152 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 153 | |
| 154 | int iwctl_siwpower(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 155 | struct iw_request_info *info, |
| 156 | struct iw_param *wrq, |
| 157 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 158 | |
| 159 | int iwctl_giwpower(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 160 | struct iw_request_info *info, |
| 161 | struct iw_param *wrq, |
| 162 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 163 | |
| 164 | int iwctl_giwscan(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 165 | struct iw_request_info *info, |
| 166 | struct iw_point *wrq, |
| 167 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 168 | |
| 169 | int iwctl_siwscan(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 170 | struct iw_request_info *info, |
| 171 | struct iw_param *wrq, |
| 172 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 173 | |
| 174 | //2008-0409-07, <Add> by Einsn Liu |
| 175 | #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT |
| 176 | int iwctl_siwauth(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 177 | struct iw_request_info *info, |
| 178 | struct iw_param *wrq, |
| 179 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 180 | |
| 181 | int iwctl_giwauth(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 182 | struct iw_request_info *info, |
| 183 | struct iw_param *wrq, |
| 184 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 185 | |
| 186 | int iwctl_siwgenie(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 187 | struct iw_request_info *info, |
| 188 | struct iw_point *wrq, |
| 189 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 190 | |
| 191 | int iwctl_giwgenie(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 192 | struct iw_request_info *info, |
| 193 | struct iw_point *wrq, |
| 194 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 195 | |
| 196 | int iwctl_siwencodeext(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 197 | struct iw_request_info *info, |
| 198 | struct iw_point *wrq, |
| 199 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 200 | |
| 201 | int iwctl_giwencodeext(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 202 | struct iw_request_info *info, |
| 203 | struct iw_point *wrq, |
| 204 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 205 | |
| 206 | int iwctl_siwmlme(struct net_device *dev, |
Joe Perches | 6da16f9 | 2013-03-18 10:44:53 -0700 | [diff] [blame] | 207 | struct iw_request_info *info, |
| 208 | struct iw_point *wrq, |
| 209 | char *extra); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 210 | #endif // #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT |
Jim Lieb | 612822f | 2009-08-12 14:54:03 -0700 | [diff] [blame] | 211 | //End Add -- //2008-0409-07, <Add> by Einsn Liu |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 212 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 213 | extern const struct iw_handler_def iwctl_handler_def; |
| 214 | extern const struct iw_priv_args iwctl_private_args; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 215 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 216 | #endif // __IWCTL_H__ |