$search
00001 /* 00002 * WPA Supplicant - privilege separation commands 00003 * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #ifndef PRIVSEP_COMMANDS_H 00016 #define PRIVSEP_COMMANDS_H 00017 00018 enum privsep_cmd { 00019 PRIVSEP_CMD_REGISTER, 00020 PRIVSEP_CMD_UNREGISTER, 00021 PRIVSEP_CMD_SCAN, 00022 PRIVSEP_CMD_GET_SCAN_RESULTS, 00023 PRIVSEP_CMD_ASSOCIATE, 00024 PRIVSEP_CMD_GET_BSSID, 00025 PRIVSEP_CMD_GET_SSID, 00026 PRIVSEP_CMD_SET_KEY, 00027 PRIVSEP_CMD_GET_CAPA, 00028 PRIVSEP_CMD_L2_REGISTER, 00029 PRIVSEP_CMD_L2_UNREGISTER, 00030 PRIVSEP_CMD_L2_NOTIFY_AUTH_START, 00031 PRIVSEP_CMD_L2_SEND, 00032 PRIVSEP_CMD_SET_COUNTRY, 00033 }; 00034 00035 struct privsep_cmd_associate 00036 { 00037 u8 bssid[ETH_ALEN]; 00038 u8 ssid[32]; 00039 size_t ssid_len; 00040 int freq; 00041 int pairwise_suite; 00042 int group_suite; 00043 int key_mgmt_suite; 00044 int auth_alg; 00045 int mode; 00046 size_t wpa_ie_len; 00047 /* followed by wpa_ie_len bytes of wpa_ie */ 00048 }; 00049 00050 struct privsep_cmd_set_key 00051 { 00052 int alg; 00053 u8 addr[ETH_ALEN]; 00054 int key_idx; 00055 int set_tx; 00056 u8 seq[8]; 00057 size_t seq_len; 00058 u8 key[32]; 00059 size_t key_len; 00060 }; 00061 00062 enum privsep_event { 00063 PRIVSEP_EVENT_SCAN_RESULTS, 00064 PRIVSEP_EVENT_ASSOC, 00065 PRIVSEP_EVENT_DISASSOC, 00066 PRIVSEP_EVENT_ASSOCINFO, 00067 PRIVSEP_EVENT_MICHAEL_MIC_FAILURE, 00068 PRIVSEP_EVENT_INTERFACE_STATUS, 00069 PRIVSEP_EVENT_PMKID_CANDIDATE, 00070 PRIVSEP_EVENT_STKSTART, 00071 PRIVSEP_EVENT_FT_RESPONSE, 00072 PRIVSEP_EVENT_RX_EAPOL, 00073 }; 00074 00075 #endif /* PRIVSEP_COMMANDS_H */