Add SME support (separate authentication and association)
[mech_eap.git] / wpa_supplicant / sme.h
1 /*
2  * wpa_supplicant - SME
3  * Copyright (c) 2009, 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 SME_H
16 #define SME_H
17
18 #ifdef CONFIG_SME
19
20 void sme_authenticate(struct wpa_supplicant *wpa_s,
21                       struct wpa_scan_res *bss, struct wpa_ssid *ssid);
22 void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
23 int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
24                       const u8 *ies, size_t ies_len);
25
26 #else /* CONFIG_SME */
27
28 static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
29                                     struct wpa_scan_res *bss,
30                                     struct wpa_ssid *ssid)
31 {
32 }
33
34 static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
35                                   union wpa_event_data *data)
36 {
37 }
38
39 static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
40                                     const u8 *ies, size_t ies_len)
41 {
42         return -1;
43 }
44 #endif /* CONFIG_SME */
45
46 #endif /* SME_H */