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: wpactl.h |
| 20 | * |
| 21 | * Purpose: |
| 22 | * |
| 23 | * Author: Lyndon Chen |
| 24 | * |
| 25 | * Date: March 1, 2005 |
| 26 | * |
| 27 | */ |
| 28 | |
| 29 | |
| 30 | #ifndef __WPACTL_H__ |
| 31 | #define __WPACTL_H__ |
| 32 | |
| 33 | #if !defined(__DEVICE_H__) |
| 34 | #include "device.h" |
| 35 | #endif |
| 36 | #ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT |
| 37 | #if !defined(__IOWPA_H__) |
| 38 | #include "iowpa.h" |
| 39 | #endif |
| 40 | #endif |
| 41 | |
| 42 | /*--------------------- Export Definitions -------------------------*/ |
| 43 | |
| 44 | |
| 45 | //WPA related |
| 46 | |
| 47 | typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg; |
| 48 | typedef enum { CIPHER_NONE, CIPHER_WEP40, CIPHER_TKIP, CIPHER_CCMP, |
| 49 | CIPHER_WEP104 } wpa_cipher; |
| 50 | typedef enum { KEY_MGMT_802_1X, KEY_MGMT_CCKM,KEY_MGMT_PSK, KEY_MGMT_NONE, |
| 51 | KEY_MGMT_802_1X_NO_WPA, KEY_MGMT_WPA_NONE } wpa_key_mgmt; |
| 52 | |
| 53 | #define AUTH_ALG_OPEN_SYSTEM 0x01 |
| 54 | #define AUTH_ALG_SHARED_KEY 0x02 |
| 55 | #define AUTH_ALG_LEAP 0x04 |
| 56 | |
| 57 | #define GENERIC_INFO_ELEM 0xdd |
| 58 | #define RSN_INFO_ELEM 0x30 |
| 59 | |
| 60 | |
| 61 | |
| 62 | typedef ULONGLONG NDIS_802_11_KEY_RSC; |
| 63 | |
| 64 | /*--------------------- Export Classes ----------------------------*/ |
| 65 | |
| 66 | /*--------------------- Export Variables --------------------------*/ |
| 67 | |
| 68 | /*--------------------- Export Functions --------------------------*/ |
| 69 | |
| 70 | |
| 71 | #ifdef __cplusplus |
| 72 | extern "C" { /* Assume C declarations for C++ */ |
| 73 | #endif /* __cplusplus */ |
| 74 | |
| 75 | int wpa_set_wpadev(PSDevice pDevice, int val); |
| 76 | int wpa_ioctl(PSDevice pDevice, struct iw_point *p); |
| 77 | int wpa_set_keys(PSDevice pDevice, void *ctx, BOOL fcpfkernel); |
| 78 | |
| 79 | #ifdef __cplusplus |
| 80 | } /* End of extern "C" { */ |
| 81 | #endif /* __cplusplus */ |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | #endif // __WPACL_H__ |
| 87 | |
| 88 | |
| 89 | |