preauth_auth.h revision 214501
10SN/A/*
29330SN/A * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
30SN/A * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
40SN/A *
50SN/A * This program is free software; you can redistribute it and/or modify
60SN/A * it under the terms of the GNU General Public License version 2 as
72362SN/A * published by the Free Software Foundation.
80SN/A *
92362SN/A * Alternatively, this software may be distributed under the terms of BSD
100SN/A * license.
110SN/A *
120SN/A * See README and COPYING for more details.
130SN/A */
140SN/A
150SN/A#ifndef PREAUTH_H
160SN/A#define PREAUTH_H
170SN/A
180SN/A#ifdef CONFIG_RSN_PREAUTH
190SN/A
200SN/Aint rsn_preauth_iface_init(struct hostapd_data *hapd);
212362SN/Avoid rsn_preauth_iface_deinit(struct hostapd_data *hapd);
222362SN/Avoid rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
232362SN/A			  int success);
240SN/Avoid rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
250SN/A		      u8 *buf, size_t len);
260SN/Avoid rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
270SN/A
280SN/A#else /* CONFIG_RSN_PREAUTH */
290SN/A
300SN/Astatic inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
310SN/A{
320SN/A	return 0;
330SN/A}
340SN/A
350SN/Astatic inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
360SN/A{
370SN/A}
380SN/A
398565SN/Astatic inline void rsn_preauth_finished(struct hostapd_data *hapd,
400SN/A					struct sta_info *sta,
410SN/A					int success)
4212623Savstepan{
4312623Savstepan}
440SN/A
450SN/Astatic inline void rsn_preauth_send(struct hostapd_data *hapd,
460SN/A				    struct sta_info *sta,
470SN/A				    u8 *buf, size_t len)
480SN/A{
490SN/A}
500SN/A
510SN/Astatic inline void rsn_preauth_free_station(struct hostapd_data *hapd,
520SN/A					    struct sta_info *sta)
530SN/A{
540SN/A}
550SN/A
560SN/A#endif /* CONFIG_RSN_PREAUTH */
570SN/A
580SN/A#endif /* PREAUTH_H */
590SN/A