Linux 2.6.31-rc6
[linux-2.6] / drivers / staging / vt6655 / hostap.h
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: hostap.h
20  *
21  * Purpose:
22  *
23  * Author: Lyndon Chen
24  *
25  * Date: May 21, 2003
26  *
27  */
28
29
30 #ifndef __HOSTAP_H__
31 #define __HOSTAP_H__
32
33 #if !defined(__DEVICE_H__)
34 #include "device.h"
35 #endif
36
37
38 /*---------------------  Export Definitions -------------------------*/
39
40 #if WIRELESS_EXT < 9
41 struct iw_point {
42         caddr_t pointer;
43         __u16 length;
44         __u16 flags;
45 };
46 #endif /* WIRELESS_EXT < 9 */
47
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
60
61
62 /*---------------------  Export Classes  ----------------------------*/
63
64 /*---------------------  Export Variables  --------------------------*/
65
66 /*---------------------  Export Functions  --------------------------*/
67
68
69 #ifdef __cplusplus
70 extern "C" {                            /* Assume C declarations for C++ */
71 #endif /* __cplusplus */
72
73 #ifndef ETH_P_PAE
74 #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
75 #endif /* ETH_P_PAE */
76
77 #ifndef ARPHRD_IEEE80211
78 #define ARPHRD_IEEE80211 801
79 #endif
80
81 int hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked);
82 int hostap_ioctl(PSDevice pDevice, struct iw_point *p);
83
84 #ifdef __cplusplus
85 }                                       /* End of extern "C" { */
86 #endif /* __cplusplus */
87
88
89
90
91 #endif // __HOSTAP_H__
92
93
94