preauth_auth.h revision 214501
1214501Srpaulo/*
2214501Srpaulo * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
3214501Srpaulo * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
4214501Srpaulo *
5214501Srpaulo * This program is free software; you can redistribute it and/or modify
6214501Srpaulo * it under the terms of the GNU General Public License version 2 as
7214501Srpaulo * published by the Free Software Foundation.
8214501Srpaulo *
9214501Srpaulo * Alternatively, this software may be distributed under the terms of BSD
10214501Srpaulo * license.
11214501Srpaulo *
12214501Srpaulo * See README and COPYING for more details.
13214501Srpaulo */
14214501Srpaulo
15214501Srpaulo#ifndef PREAUTH_H
16214501Srpaulo#define PREAUTH_H
17214501Srpaulo
18214501Srpaulo#ifdef CONFIG_RSN_PREAUTH
19214501Srpaulo
20214501Srpauloint rsn_preauth_iface_init(struct hostapd_data *hapd);
21214501Srpaulovoid rsn_preauth_iface_deinit(struct hostapd_data *hapd);
22214501Srpaulovoid rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
23214501Srpaulo			  int success);
24214501Srpaulovoid rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
25214501Srpaulo		      u8 *buf, size_t len);
26214501Srpaulovoid rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
27214501Srpaulo
28214501Srpaulo#else /* CONFIG_RSN_PREAUTH */
29214501Srpaulo
30214501Srpaulostatic inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
31214501Srpaulo{
32214501Srpaulo	return 0;
33214501Srpaulo}
34214501Srpaulo
35214501Srpaulostatic inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
36214501Srpaulo{
37214501Srpaulo}
38214501Srpaulo
39214501Srpaulostatic inline void rsn_preauth_finished(struct hostapd_data *hapd,
40214501Srpaulo					struct sta_info *sta,
41214501Srpaulo					int success)
42214501Srpaulo{
43214501Srpaulo}
44214501Srpaulo
45214501Srpaulostatic inline void rsn_preauth_send(struct hostapd_data *hapd,
46214501Srpaulo				    struct sta_info *sta,
47214501Srpaulo				    u8 *buf, size_t len)
48214501Srpaulo{
49214501Srpaulo}
50214501Srpaulo
51214501Srpaulostatic inline void rsn_preauth_free_station(struct hostapd_data *hapd,
52214501Srpaulo					    struct sta_info *sta)
53214501Srpaulo{
54214501Srpaulo}
55214501Srpaulo
56214501Srpaulo#endif /* CONFIG_RSN_PREAUTH */
57214501Srpaulo
58214501Srpaulo#endif /* PREAUTH_H */
59