KVM: nVMX: Fix returned value of MSR_IA32_VMX_VMCS_ENUM
[linux/fpc-iii.git] / drivers / staging / vt6655 / iowpa.h
blobb7bd1909fa7ccbde2edbabb8f4aa190bcd7b610c
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
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.
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.
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.
19 * File: iowpa.h
21 * Purpose: Handles wpa supplicant ioctl interface
23 * Author: Lyndon Chen
25 * Date: May 8, 2002
29 #ifndef __IOWPA_H__
30 #define __IOWPA_H__
32 /*--------------------- Export Definitions -------------------------*/
34 #define WPA_IE_LEN 64
36 //WPA related
38 enum {
39 VIAWGET_SET_WPA = 1,
40 VIAWGET_SET_KEY = 2,
41 VIAWGET_SET_SCAN = 3,
42 VIAWGET_GET_SCAN = 4,
43 VIAWGET_GET_SSID = 5,
44 VIAWGET_GET_BSSID = 6,
45 VIAWGET_SET_DROP_UNENCRYPT = 7,
46 VIAWGET_SET_DEAUTHENTICATE = 8,
47 VIAWGET_SET_ASSOCIATE = 9,
48 VIAWGET_SET_DISASSOCIATE = 10
51 enum {
52 VIAWGET_ASSOC_MSG = 1,
53 VIAWGET_DISASSOC_MSG = 2,
54 VIAWGET_PTK_MIC_MSG = 3,
55 VIAWGET_GTK_MIC_MSG = 4,
56 VIAWGET_CCKM_ROAM_MSG = 5,
57 VIAWGET_DEVICECLOSE_MSG = 6
60 #pragma pack(1)
61 typedef struct viawget_wpa_header {
62 u8 type;
63 u16 req_ie_len;
64 u16 resp_ie_len;
65 } viawget_wpa_header;
67 struct viawget_wpa_param {
68 u32 cmd;
69 u8 addr[6];
70 union {
71 struct {
72 u8 len;
73 u8 data[0];
74 } generic_elem;
76 struct {
77 u8 bssid[6];
78 u8 ssid[32];
79 u8 ssid_len;
80 u8 *wpa_ie;
81 u16 wpa_ie_len;
82 int pairwise_suite;
83 int group_suite;
84 int key_mgmt_suite;
85 int auth_alg;
86 int mode;
88 } wpa_associate;
90 struct {
91 int alg_name;
92 u16 key_index;
93 u16 set_tx;
94 u8 *seq;
95 u16 seq_len;
96 u8 *key;
97 u16 key_len;
98 } wpa_key;
100 struct {
101 u8 ssid_len;
102 u8 ssid[32];
103 } scan_req;
105 struct {
106 u16 scan_count;
107 u8 *buf;
108 } scan_results;
110 } u;
113 #pragma pack(1)
114 struct viawget_scan_result {
115 u8 bssid[6];
116 u8 ssid[32];
117 u16 ssid_len;
118 u8 wpa_ie[WPA_IE_LEN];
119 u16 wpa_ie_len;
120 u8 rsn_ie[WPA_IE_LEN];
121 u16 rsn_ie_len;
122 int freq; // MHz
123 int caps; // e.g. privacy
124 int qual; // signal quality
125 int noise;
126 int level;
127 int maxrate;
130 //2006-1116-01,<Add> by NomadZhao
131 #pragma pack()
132 /*--------------------- Export Classes ----------------------------*/
134 /*--------------------- Export Variables --------------------------*/
136 /*--------------------- Export Types ------------------------------*/
138 /*--------------------- Export Functions --------------------------*/
140 #endif //__IOWPA_H__