Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / network / WirelessManager / wpa_supplicant / sme.h
blob3ec8cc936e88887221e76427dd110b51b0b48cb8
1 /*
2 * wpa_supplicant - SME
3 * Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef SME_H
16 #define SME_H
18 #ifdef CONFIG_SME
20 void sme_authenticate(struct wpa_supplicant *wpa_s,
21 struct wpa_bss *bss, struct wpa_ssid *ssid);
22 void sme_associate(struct wpa_supplicant *wpa_s, enum wpas_mode mode,
23 const u8 *bssid, u16 auth_type);
24 void sme_event_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data);
25 int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
26 const u8 *ies, size_t ies_len);
27 void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
28 union wpa_event_data *data);
29 void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
30 union wpa_event_data *data);
31 void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
32 union wpa_event_data *data);
33 void sme_event_disassoc(struct wpa_supplicant *wpa_s,
34 union wpa_event_data *data);
36 #else /* CONFIG_SME */
38 static inline void sme_authenticate(struct wpa_supplicant *wpa_s,
39 struct wpa_bss *bss,
40 struct wpa_ssid *ssid)
44 static inline void sme_event_auth(struct wpa_supplicant *wpa_s,
45 union wpa_event_data *data)
49 static inline int sme_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
50 const u8 *ies, size_t ies_len)
52 return -1;
56 static inline void sme_event_assoc_reject(struct wpa_supplicant *wpa_s,
57 union wpa_event_data *data)
61 static inline void sme_event_auth_timed_out(struct wpa_supplicant *wpa_s,
62 union wpa_event_data *data)
66 static inline void sme_event_assoc_timed_out(struct wpa_supplicant *wpa_s,
67 union wpa_event_data *data)
71 static inline void sme_event_disassoc(struct wpa_supplicant *wpa_s,
72 union wpa_event_data *data)
76 #endif /* CONFIG_SME */
78 #endif /* SME_H */