Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 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 | |
| 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); |
| 27 | |
| 28 | #else /* CONFIG_RSN_PREAUTH */ |
| 29 | |
| 30 | static inline int rsn_preauth_iface_init(struct hostapd_data *hapd) |
| 31 | { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | static inline void rsn_preauth_finished(struct hostapd_data *hapd, |
| 40 | struct sta_info *sta, |
| 41 | int success) |
| 42 | { |
| 43 | } |
| 44 | |
| 45 | static inline void rsn_preauth_send(struct hostapd_data *hapd, |
| 46 | struct sta_info *sta, |
| 47 | u8 *buf, size_t len) |
| 48 | { |
| 49 | } |
| 50 | |
| 51 | static 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 */ |