Merge branches 'arm', 'at91', 'bcmring', 'ep93xx', 'mach-types', 'misc' and 'w90x900...
[linux-2.6/kvm.git] / drivers / staging / vt6655 / hostap.h
blob1fcb2f0788b35131fa43c48fe43042d1fd035b8b
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
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.
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.
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.
19 * File: hostap.h
21 * Purpose:
23 * Author: Lyndon Chen
25 * Date: May 21, 2003
30 #ifndef __HOSTAP_H__
31 #define __HOSTAP_H__
33 #if !defined(__DEVICE_H__)
34 #include "device.h"
35 #endif
38 /*--------------------- Export Definitions -------------------------*/
40 #if WIRELESS_EXT < 9
41 struct iw_point {
42 caddr_t pointer;
43 __u16 length;
44 __u16 flags;
46 #endif /* WIRELESS_EXT < 9 */
48 #define WLAN_RATE_1M BIT0
49 #define WLAN_RATE_2M BIT1
50 #define WLAN_RATE_5M5 BIT2
51 #define WLAN_RATE_11M BIT3
52 #define WLAN_RATE_6M BIT4
53 #define WLAN_RATE_9M BIT5
54 #define WLAN_RATE_12M BIT6
55 #define WLAN_RATE_18M BIT7
56 #define WLAN_RATE_24M BIT8
57 #define WLAN_RATE_36M BIT9
58 #define WLAN_RATE_48M BIT10
59 #define WLAN_RATE_54M BIT11
62 /*--------------------- Export Classes ----------------------------*/
64 /*--------------------- Export Variables --------------------------*/
66 /*--------------------- Export Functions --------------------------*/
69 #ifdef __cplusplus
70 extern "C" { /* Assume C declarations for C++ */
71 #endif /* __cplusplus */
73 #ifndef ETH_P_PAE
74 #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
75 #endif /* ETH_P_PAE */
77 #ifndef ARPHRD_IEEE80211
78 #define ARPHRD_IEEE80211 801
79 #endif
81 int hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked);
82 int hostap_ioctl(PSDevice pDevice, struct iw_point *p);
84 #ifdef __cplusplus
85 } /* End of extern "C" { */
86 #endif /* __cplusplus */
91 #endif // __HOSTAP_H__