2 * Copyright (c) 1996, 2003 VIA Networking, Inc. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 * Purpose: Handles wpa supplicant ioctl interface
32 /*--------------------- Export Definitions -------------------------*/
40 typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg;
41 typedef enum { CIPHER_NONE, CIPHER_WEP40, CIPHER_TKIP, CIPHER_CCMP,
42 CIPHER_WEP104 } wpa_cipher;
43 typedef enum { KEY_MGMT_802_1X, KEY_MGMT_PSK, KEY_MGMT_NONE,
44 KEY_MGMT_802_1X_NO_WPA, KEY_MGMT_WPA_NONE } wpa_key_mgmt;
53 VIAWGET_GET_BSSID
= 6,
54 VIAWGET_SET_DROP_UNENCRYPT
= 7,
55 VIAWGET_SET_DEAUTHENTICATE
= 8,
56 VIAWGET_SET_ASSOCIATE
= 9,
57 VIAWGET_SET_DISASSOCIATE
= 10
62 VIAWGET_ASSOC_MSG
= 1,
63 VIAWGET_DISASSOC_MSG
= 2,
64 VIAWGET_PTK_MIC_MSG
= 3,
65 VIAWGET_GTK_MIC_MSG
= 4,
66 VIAWGET_CCKM_ROAM_MSG
= 5,
67 VIAWGET_DEVICECLOSE_MSG
= 6
73 typedef struct viawget_wpa_header
{
81 struct viawget_wpa_param
{
129 struct viawget_scan_result
{
133 u8 wpa_ie
[WPA_IE_LEN
];
135 u8 rsn_ie
[WPA_IE_LEN
];
138 int caps
; // e.g. privacy
139 int qual
; // signal quality
145 //2006-1116-01,<Add> by NomadZhao
147 /*--------------------- Export Classes ----------------------------*/
149 /*--------------------- Export Variables --------------------------*/
152 /*--------------------- Export Types ------------------------------*/
155 /*--------------------- Export Functions --------------------------*/