Added initial step for IBSS RSN support
[mech_eap.git] / wpa_supplicant / ibss_rsn.h
1 /*
2  * wpa_supplicant - IBSS RSN
3  * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
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 version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef IBSS_RSN_H
16 #define IBSS_RSN_H
17
18 struct ibss_rsn_peer {
19         struct ibss_rsn_peer *next;
20
21         u8 addr[ETH_ALEN];
22
23         struct wpa_sm *supp;
24
25         struct wpa_state_machine *auth;
26 };
27
28 struct ibss_rsn {
29         struct wpa_supplicant *wpa_s;
30         struct wpa_authenticator *auth_group;
31         struct ibss_rsn_peer *peers;
32         u8 psk[PMK_LEN];
33 };
34
35
36 struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
37 void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
38 int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
39
40 #endif /* IBSS_RSN_H */