Fix issues with the scheduler that were causing unnecessary reschedules
[dragonfly.git] / contrib / hostapd-0.5.8 / preauth.h
blob5348bee9bf72ef6fb7acc0a68a4ddbacc46213a2
1 /*
2 * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
3 * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef PREAUTH_H
16 #define PREAUTH_H
18 #ifdef CONFIG_RSN_PREAUTH
20 int rsn_preauth_iface_init(struct hostapd_data *hapd);
21 void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
22 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
23 int success);
24 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
25 u8 *buf, size_t len);
26 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
28 #else /* CONFIG_RSN_PREAUTH */
30 static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
32 return 0;
35 static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
39 static inline void rsn_preauth_finished(struct hostapd_data *hapd,
40 struct sta_info *sta,
41 int success)
45 static inline void rsn_preauth_send(struct hostapd_data *hapd,
46 struct sta_info *sta,
47 u8 *buf, size_t len)
51 static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
52 struct sta_info *sta)
56 #endif /* CONFIG_RSN_PREAUTH */
58 #endif /* PREAUTH_H */