]> git.ipfire.org Git - thirdparty/hostap.git/blame - wpa_supplicant/ibss_rsn.h
Clear current_bss pointer on disassociation/deauthentication
[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 *
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
e2d492dd
JM
18struct ibss_rsn;
19
11ef8d35
JM
20struct ibss_rsn_peer {
21 struct ibss_rsn_peer *next;
e2d492dd 22 struct ibss_rsn *ibss_rsn;
11ef8d35
JM
23
24 u8 addr[ETH_ALEN];
25
26 struct wpa_sm *supp;
71934751 27 enum wpa_states supp_state;
4691fc7b
JM
28 u8 supp_ie[80];
29 size_t supp_ie_len;
11ef8d35
JM
30
31 struct wpa_state_machine *auth;
32};
33
34struct ibss_rsn {
35 struct wpa_supplicant *wpa_s;
36 struct wpa_authenticator *auth_group;
37 struct ibss_rsn_peer *peers;
38 u8 psk[PMK_LEN];
39};
40
41
42struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
43void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
44int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
8be18440
JM
45int ibss_rsn_rx_eapol(struct ibss_rsn *ibss_rsn, const u8 *src_addr,
46 const u8 *buf, size_t len);
b9a2e577 47void ibss_rsn_set_psk(struct ibss_rsn *ibss_rsn, const u8 *psk);
11ef8d35
JM
48
49#endif /* IBSS_RSN_H */