path: root/src/rsn_supp/preauth.h
diff options
authorJouni Malinen <j@w1.fi>2009-11-29 15:06:03 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-29 15:06:03 (GMT)
commit6ae9318536ecffa7374431767e2e3cb0c6b56758 (patch)
treedc3d65a2d93159b7444d91fb64cd4282abca57a1 /src/rsn_supp/preauth.h
parent4d69dc3ecc6b4a4665c8c5164587876751abfec2 (diff)
Split scan processing for RSN preauthentication into parts
This avoids passing the raw scan results into the RSN code and by doing so, removes the only dependency on src/drivers from the src/rsn_supp code (or from any src subdirectory for that matter).
Diffstat (limited to 'src/rsn_supp/preauth.h')
1 files changed, 12 insertions, 5 deletions
diff --git a/src/rsn_supp/preauth.h b/src/rsn_supp/preauth.h
index b9ac57b..36aedb6 100644
--- a/src/rsn_supp/preauth.h
+++ b/src/rsn_supp/preauth.h
@@ -1,6 +1,6 @@
* wpa_supplicant - WPA2/RSN pre-authentication functions
- * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -23,8 +23,9 @@ void pmksa_candidate_free(struct wpa_sm *sm);
int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
struct eap_peer_config *eap_conf);
void rsn_preauth_deinit(struct wpa_sm *sm);
-void rsn_preauth_scan_results(struct wpa_sm *sm,
- struct wpa_scan_results *results);
+int rsn_preauth_scan_results(struct wpa_sm *sm);
+void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
+ const u8 *ssid, const u8 *rsn);
void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
int prio, int preauth);
void rsn_preauth_candidate_process(struct wpa_sm *sm);
@@ -51,8 +52,14 @@ static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
static inline void rsn_preauth_deinit(struct wpa_sm *sm)
-static inline void rsn_preauth_scan_results(struct wpa_sm *sm,
- struct wpa_scan_results *results)
+static inline int rsn_preauth_scan_results(struct wpa_sm *sm)
+ return -1;
+void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
+ const u8 *ssid, const u8 *rsn)