2009-01-15 00:21:55 +01:00
|
|
|
/*
|
|
|
|
* wpa_supplicant - IBSS RSN
|
|
|
|
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IBSS_RSN_H
|
|
|
|
#define IBSS_RSN_H
|
|
|
|
|
2009-01-15 23:56:31 +01:00
|
|
|
struct ibss_rsn;
|
|
|
|
|
2009-01-15 00:21:55 +01:00
|
|
|
struct ibss_rsn_peer {
|
|
|
|
struct ibss_rsn_peer *next;
|
2009-01-15 23:56:31 +01:00
|
|
|
struct ibss_rsn *ibss_rsn;
|
2009-01-15 00:21:55 +01:00
|
|
|
|
|
|
|
u8 addr[ETH_ALEN];
|
|
|
|
|
|
|
|
struct wpa_sm *supp;
|
2009-01-17 16:31:21 +01:00
|
|
|
wpa_states supp_state;
|
2009-01-15 00:21:55 +01:00
|
|
|
|
|
|
|
struct wpa_state_machine *auth;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ibss_rsn {
|
|
|
|
struct wpa_supplicant *wpa_s;
|
|
|
|
struct wpa_authenticator *auth_group;
|
|
|
|
struct ibss_rsn_peer *peers;
|
|
|
|
u8 psk[PMK_LEN];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct ibss_rsn * ibss_rsn_init(struct wpa_supplicant *wpa_s);
|
|
|
|
void ibss_rsn_deinit(struct ibss_rsn *ibss_rsn);
|
|
|
|
int ibss_rsn_start(struct ibss_rsn *ibss_rsn, const u8 *addr);
|
2009-01-17 16:25:11 +01:00
|
|
|
int ibss_rsn_rx_eapol(struct ibss_rsn *ibss_rsn, const u8 *src_addr,
|
|
|
|
const u8 *buf, size_t len);
|
2009-01-15 00:21:55 +01:00
|
|
|
|
|
|
|
#endif /* IBSS_RSN_H */
|