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).
This commit is contained in:
parent
4d69dc3ecc
commit
6ae9318536
3 changed files with 80 additions and 46 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue