]> git.ipfire.org Git - thirdparty/hostap.git/blame - wpa_supplicant/ibss_rsn.h
SAE: Add processing of the commit message
[thirdparty/hostap.git] / wpa_supplicant / ibss_rsn.h
CommitLineData
11ef8d35
JM
1/*
2 * wpa_supplicant - IBSS RSN
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
11ef8d35
JM
7 */
8
9#ifndef IBSS_RSN_H
10#define IBSS_RSN_H
11
e2d492dd
JM
12struct ibss_rsn;
13
11ef8d35
JM
14struct ibss_rsn_peer {
15 struct ibss_rsn_peer *next;
e2d492dd 16 struct ibss_rsn *ibss_rsn;
11ef8d35
JM
17
18 u8 addr[ETH_ALEN];
19
20 struct wpa_sm *supp;
71934751 21 enum wpa_states supp_state;
4691fc7b
JM
22 u8 supp_ie[80];
23 size_t supp_ie_len;
11ef8d35
JM
24
25 struct wpa_state_machine *auth;
26};
27
28struct 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
36struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
37void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
38int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
ea244d21 39void ibss_rsn_stop(struct ibss_rsn *ibss_rsn, const u8 *peermac);
8be18440
JM
40int ibss_rsn_rx_eapol(struct ibss_rsn *ibss_rsn, const u8 *src_addr,
41 const u8 *buf, size_t len);
b9a2e577 42void ibss_rsn_set_psk(struct ibss_rsn *ibss_rsn, const u8 *psk);
11ef8d35
JM
43
44#endif /* IBSS_RSN_H */