xref: /freebsd/contrib/wpa/src/ap/preauth_auth.h (revision 0bfd163f522701b486e066fa2e56624c02f5081a)
1e28a4053SRui Paulo /*
2e28a4053SRui Paulo  * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
3e28a4053SRui Paulo  * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
4e28a4053SRui Paulo  *
5*f05cddf9SRui Paulo  * This software may be distributed under the terms of the BSD license.
6*f05cddf9SRui Paulo  * See README for more details.
7e28a4053SRui Paulo  */
8e28a4053SRui Paulo 
9e28a4053SRui Paulo #ifndef PREAUTH_H
10e28a4053SRui Paulo #define PREAUTH_H
11e28a4053SRui Paulo 
12e28a4053SRui Paulo #ifdef CONFIG_RSN_PREAUTH
13e28a4053SRui Paulo 
14e28a4053SRui Paulo int rsn_preauth_iface_init(struct hostapd_data *hapd);
15e28a4053SRui Paulo void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
16e28a4053SRui Paulo void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
17e28a4053SRui Paulo 			  int success);
18e28a4053SRui Paulo void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
19e28a4053SRui Paulo 		      u8 *buf, size_t len);
20e28a4053SRui Paulo void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
21e28a4053SRui Paulo 
22e28a4053SRui Paulo #else /* CONFIG_RSN_PREAUTH */
23e28a4053SRui Paulo 
rsn_preauth_iface_init(struct hostapd_data * hapd)24e28a4053SRui Paulo static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
25e28a4053SRui Paulo {
26e28a4053SRui Paulo 	return 0;
27e28a4053SRui Paulo }
28e28a4053SRui Paulo 
rsn_preauth_iface_deinit(struct hostapd_data * hapd)29e28a4053SRui Paulo static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
30e28a4053SRui Paulo {
31e28a4053SRui Paulo }
32e28a4053SRui Paulo 
rsn_preauth_finished(struct hostapd_data * hapd,struct sta_info * sta,int success)33e28a4053SRui Paulo static inline void rsn_preauth_finished(struct hostapd_data *hapd,
34e28a4053SRui Paulo 					struct sta_info *sta,
35e28a4053SRui Paulo 					int success)
36e28a4053SRui Paulo {
37e28a4053SRui Paulo }
38e28a4053SRui Paulo 
rsn_preauth_send(struct hostapd_data * hapd,struct sta_info * sta,u8 * buf,size_t len)39e28a4053SRui Paulo static inline void rsn_preauth_send(struct hostapd_data *hapd,
40e28a4053SRui Paulo 				    struct sta_info *sta,
41e28a4053SRui Paulo 				    u8 *buf, size_t len)
42e28a4053SRui Paulo {
43e28a4053SRui Paulo }
44e28a4053SRui Paulo 
rsn_preauth_free_station(struct hostapd_data * hapd,struct sta_info * sta)45e28a4053SRui Paulo static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
46e28a4053SRui Paulo 					    struct sta_info *sta)
47e28a4053SRui Paulo {
48e28a4053SRui Paulo }
49e28a4053SRui Paulo 
50e28a4053SRui Paulo #endif /* CONFIG_RSN_PREAUTH */
51e28a4053SRui Paulo 
52e28a4053SRui Paulo #endif /* PREAUTH_H */
53