wpa_priv: Add authentication command and event
[mech_eap.git] / src / common / privsep_commands.h
index 6562140..8dff303 100644 (file)
@@ -26,6 +26,25 @@ enum privsep_cmd {
        PRIVSEP_CMD_L2_NOTIFY_AUTH_START,
        PRIVSEP_CMD_L2_SEND,
        PRIVSEP_CMD_SET_COUNTRY,
+       PRIVSEP_CMD_AUTHENTICATE,
+};
+
+struct privsep_cmd_authenticate
+{
+       int freq;
+       u8 bssid[ETH_ALEN];
+       u8 ssid[SSID_MAX_LEN];
+       size_t ssid_len;
+       int auth_alg;
+       size_t ie_len;
+       u8 wep_key[4][16];
+       size_t wep_key_len[4];
+       int wep_tx_keyidx;
+       int local_state_change;
+       int p2p;
+       size_t sae_data_len;
+       /* followed by ie_len bytes of ie */
+       /* followed by sae_data_len bytes of sae_data */
 };
 
 struct privsep_cmd_associate
@@ -69,6 +88,17 @@ enum privsep_event {
        PRIVSEP_EVENT_FT_RESPONSE,
        PRIVSEP_EVENT_RX_EAPOL,
        PRIVSEP_EVENT_SCAN_STARTED,
+       PRIVSEP_EVENT_AUTH,
+};
+
+struct privsep_event_auth {
+       u8 peer[ETH_ALEN];
+       u8 bssid[ETH_ALEN];
+       u16 auth_type;
+       u16 auth_transaction;
+       u16 status_code;
+       size_t ies_len;
+       /* followed by ies_len bytes of ies */
 };
 
 #endif /* PRIVSEP_COMMANDS_H */