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