2
* wpa_supplicant - WPA2/RSN pre-authentication functions
3
* Copyright (c) 2003-2005, 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
12
* See README and COPYING for more details.
18
struct wpa_scan_result;
22
void pmksa_candidate_free(struct wpa_sm *sm);
24
#else /* CONFIG_NO_WPA */
26
static inline void pmksa_candidate_free(struct wpa_sm *sm)
30
#endif /* CONFIG_NO_WPA */
33
#if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
35
int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
36
struct wpa_ssid *config);
37
void rsn_preauth_deinit(struct wpa_sm *sm);
38
void rsn_preauth_scan_results(struct wpa_sm *sm,
39
struct wpa_scan_result *results, int count);
40
void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
41
int prio, int preauth);
42
void rsn_preauth_candidate_process(struct wpa_sm *sm);
43
int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
45
int rsn_preauth_in_progress(struct wpa_sm *sm);
47
#else /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
49
static inline void rsn_preauth_candidate_process(struct wpa_sm *sm)
53
static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
54
struct wpa_ssid *config)
59
static inline void rsn_preauth_deinit(struct wpa_sm *sm)
62
static inline void rsn_preauth_scan_results(struct wpa_sm *sm,
63
struct wpa_scan_result *results,
68
static inline void pmksa_candidate_add(struct wpa_sm *sm,
70
int prio, int preauth)
74
static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
75
size_t buflen, int verbose)
80
static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
85
#endif /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
87
#endif /* PREAUTH_H */