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: 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 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 40 | #define WLAN_RATE_1M BIT0 |
| 41 | #define WLAN_RATE_2M BIT1 |
| 42 | #define WLAN_RATE_5M5 BIT2 |
| 43 | #define WLAN_RATE_11M BIT3 |
| 44 | #define WLAN_RATE_6M BIT4 |
| 45 | #define WLAN_RATE_9M BIT5 |
| 46 | #define WLAN_RATE_12M BIT6 |
| 47 | #define WLAN_RATE_18M BIT7 |
| 48 | #define WLAN_RATE_24M BIT8 |
| 49 | #define WLAN_RATE_36M BIT9 |
| 50 | #define WLAN_RATE_48M BIT10 |
| 51 | #define WLAN_RATE_54M BIT11 |
| 52 | |
| 53 | |
| 54 | /*--------------------- Export Classes ----------------------------*/ |
| 55 | |
| 56 | /*--------------------- Export Variables --------------------------*/ |
| 57 | |
| 58 | /*--------------------- Export Functions --------------------------*/ |
| 59 | |
| 60 | |
| 61 | #ifdef __cplusplus |
| 62 | extern "C" { /* Assume C declarations for C++ */ |
| 63 | #endif /* __cplusplus */ |
| 64 | |
| 65 | #ifndef ETH_P_PAE |
| 66 | #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ |
| 67 | #endif /* ETH_P_PAE */ |
| 68 | |
| 69 | #ifndef ARPHRD_IEEE80211 |
| 70 | #define ARPHRD_IEEE80211 801 |
| 71 | #endif |
| 72 | |
| 73 | int hostap_set_hostapd(PSDevice pDevice, int val, int rtnl_locked); |
| 74 | int hostap_ioctl(PSDevice pDevice, struct iw_point *p); |
| 75 | |
| 76 | #ifdef __cplusplus |
| 77 | } /* End of extern "C" { */ |
| 78 | #endif /* __cplusplus */ |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | #endif // __HOSTAP_H__ |
| 84 | |
| 85 | |
| 86 | |