2 * WPA Supplicant - privilege separation commands
3 * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
9 #ifndef PRIVSEP_COMMANDS_H
10 #define PRIVSEP_COMMANDS_H
12 #include "drivers/driver.h"
13 #include "common/ieee802_11_defs.h"
17 PRIVSEP_CMD_UNREGISTER
,
19 PRIVSEP_CMD_GET_SCAN_RESULTS
,
20 PRIVSEP_CMD_ASSOCIATE
,
21 PRIVSEP_CMD_GET_BSSID
,
25 PRIVSEP_CMD_L2_REGISTER
,
26 PRIVSEP_CMD_L2_UNREGISTER
,
27 PRIVSEP_CMD_L2_NOTIFY_AUTH_START
,
29 PRIVSEP_CMD_SET_COUNTRY
,
30 PRIVSEP_CMD_AUTHENTICATE
,
33 #define PRIVSEP_MAX_SCAN_FREQS 50
35 struct privsep_cmd_scan
{
36 unsigned int num_ssids
;
37 u8 ssids
[WPAS_MAX_SCAN_SSIDS
][32];
38 u8 ssid_lens
[WPAS_MAX_SCAN_SSIDS
];
39 unsigned int num_freqs
;
40 u16 freqs
[PRIVSEP_MAX_SCAN_FREQS
];
43 struct privsep_cmd_authenticate
{
46 u8 ssid
[SSID_MAX_LEN
];
51 size_t wep_key_len
[4];
53 int local_state_change
;
56 /* followed by ie_len bytes of ie */
57 /* followed by auth_data_len bytes of auth_data */
60 struct privsep_cmd_associate
{
62 u8 ssid
[SSID_MAX_LEN
];
73 /* followed by wpa_ie_len bytes of wpa_ie */
76 struct privsep_cmd_set_key
{
85 enum key_flag key_flag
;
89 PRIVSEP_EVENT_SCAN_RESULTS
,
91 PRIVSEP_EVENT_DISASSOC
,
92 PRIVSEP_EVENT_ASSOCINFO
,
93 PRIVSEP_EVENT_MICHAEL_MIC_FAILURE
,
94 PRIVSEP_EVENT_INTERFACE_STATUS
,
95 PRIVSEP_EVENT_PMKID_CANDIDATE
,
96 PRIVSEP_EVENT_FT_RESPONSE
,
97 PRIVSEP_EVENT_RX_EAPOL
,
98 PRIVSEP_EVENT_SCAN_STARTED
,
102 struct privsep_event_auth
{
106 u16 auth_transaction
;
109 /* followed by ies_len bytes of ies */
112 #endif /* PRIVSEP_COMMANDS_H */