2 * wpa_supplicant - WPA2/RSN pre-authentication functions
3 * Copyright (c) 2003-2009, 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_results
;
20 #if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
22 void pmksa_candidate_free(struct wpa_sm
*sm
);
23 int rsn_preauth_init(struct wpa_sm
*sm
, const u8
*dst
,
24 struct eap_peer_config
*eap_conf
);
25 void rsn_preauth_deinit(struct wpa_sm
*sm
);
26 int rsn_preauth_scan_results(struct wpa_sm
*sm
);
27 void rsn_preauth_scan_result(struct wpa_sm
*sm
, const u8
*bssid
,
28 const u8
*ssid
, const u8
*rsn
);
29 void pmksa_candidate_add(struct wpa_sm
*sm
, const u8
*bssid
,
30 int prio
, int preauth
);
31 void rsn_preauth_candidate_process(struct wpa_sm
*sm
);
32 int rsn_preauth_get_status(struct wpa_sm
*sm
, char *buf
, size_t buflen
,
34 int rsn_preauth_in_progress(struct wpa_sm
*sm
);
36 #else /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
38 static inline void pmksa_candidate_free(struct wpa_sm
*sm
)
42 static inline void rsn_preauth_candidate_process(struct wpa_sm
*sm
)
46 static inline int rsn_preauth_init(struct wpa_sm
*sm
, const u8
*dst
,
47 struct eap_peer_config
*eap_conf
)
52 static inline void rsn_preauth_deinit(struct wpa_sm
*sm
)
56 static inline int rsn_preauth_scan_results(struct wpa_sm
*sm
)
61 static inline void rsn_preauth_scan_result(struct wpa_sm
*sm
, const u8
*bssid
,
62 const u8
*ssid
, const u8
*rsn
)
66 static inline void pmksa_candidate_add(struct wpa_sm
*sm
,
68 int prio
, int preauth
)
72 static inline int rsn_preauth_get_status(struct wpa_sm
*sm
, char *buf
,
73 size_t buflen
, int verbose
)
78 static inline int rsn_preauth_in_progress(struct wpa_sm
*sm
)
83 #endif /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
85 #endif /* PREAUTH_H */