blob: 2b7a05a2902e2144199edf38168cadafe3644203 [file] [log] [blame]
Forest Bond5449c682009-04-25 10:30:44 -04001/*
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
Forest Bond5449c682009-04-25 10:30:44 -040029#ifndef __WPACTL_H__
30#define __WPACTL_H__
31
Forest Bond5449c682009-04-25 10:30:44 -040032#include "device.h"
Forest Bond5449c682009-04-25 10:30:44 -040033#ifdef WPA_SUPPLICANT_DRIVER_WEXT_SUPPORT
Forest Bond5449c682009-04-25 10:30:44 -040034#include "iowpa.h"
35#endif
Forest Bond5449c682009-04-25 10:30:44 -040036
37/*--------------------- Export Definitions -------------------------*/
38
39
40//WPA related
41
42typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg;
43typedef enum { CIPHER_NONE, CIPHER_WEP40, CIPHER_TKIP, CIPHER_CCMP,
44 CIPHER_WEP104 } wpa_cipher;
Joe Perchesf9cf92b2013-03-18 10:45:14 -070045typedef enum { KEY_MGMT_802_1X, KEY_MGMT_CCKM, KEY_MGMT_PSK, KEY_MGMT_NONE,
Forest Bond5449c682009-04-25 10:30:44 -040046 KEY_MGMT_802_1X_NO_WPA, KEY_MGMT_WPA_NONE } wpa_key_mgmt;
47
48#define AUTH_ALG_OPEN_SYSTEM 0x01
49#define AUTH_ALG_SHARED_KEY 0x02
50#define AUTH_ALG_LEAP 0x04
51
52#define GENERIC_INFO_ELEM 0xdd
53#define RSN_INFO_ELEM 0x30
54
55
56
Charles Clémentb2e876b2010-06-02 09:52:03 -070057typedef unsigned long long NDIS_802_11_KEY_RSC;
Forest Bond5449c682009-04-25 10:30:44 -040058
59/*--------------------- Export Classes ----------------------------*/
60
61/*--------------------- Export Variables --------------------------*/
62
63/*--------------------- Export Functions --------------------------*/
64
Forest Bond5449c682009-04-25 10:30:44 -040065int wpa_set_wpadev(PSDevice pDevice, int val);
66int wpa_ioctl(PSDevice pDevice, struct iw_point *p);
Charles Clément7b6a0012010-08-01 17:15:50 +020067int wpa_set_keys(PSDevice pDevice, void *ctx, bool fcpfkernel);
Forest Bond5449c682009-04-25 10:30:44 -040068
Forest Bond5449c682009-04-25 10:30:44 -040069#endif // __WPACL_H__
70
71
72