Merge branch 'serge-next-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sergeh...
[deliverable/linux.git] / drivers / staging / vt6656 / iowpa.h
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: iowpa.h
20 *
21 * Purpose: Handles wpa supplicant ioctl interface
22 *
23 * Author: Lyndon Chen
24 *
25 * Date: May 8, 2002
26 *
27 */
28
29 #ifndef __IOWPA_H__
30 #define __IOWPA_H__
31
32 #define WPA_IE_LEN 64
33
34 struct viawget_wpa_param {
35 u32 cmd;
36 u8 addr[6];
37 union {
38 struct {
39 u8 len;
40 u8 data[0];
41 } generic_elem;
42 struct {
43 u8 bssid[6];
44 u8 ssid[32];
45 u8 ssid_len;
46 u8 *wpa_ie;
47 u16 wpa_ie_len;
48 int pairwise_suite;
49 int group_suite;
50 int key_mgmt_suite;
51 int auth_alg;
52 int mode;
53 u8 roam_dbm;
54 } wpa_associate;
55 struct {
56 int alg_name;
57 u16 key_index;
58 u16 set_tx;
59 u8 *seq;
60 u16 seq_len;
61 u8 *key;
62 u16 key_len;
63 } wpa_key;
64 struct {
65 u8 ssid_len;
66 u8 ssid[32];
67 } scan_req;
68 struct {
69 u16 scan_count;
70 u8 *buf;
71 } scan_results;
72 } u;
73 } __packed;
74
75 #endif /* __IOWPA_H__ */
This page took 0.030874 seconds and 5 git commands to generate.