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