SAE: Use a shared data structure for AP and station

This makes it easier to share common functions for both roles.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-12-30 21:48:19 +02:00
parent 05a8d4221d
commit 98efcc4176
6 changed files with 47 additions and 19 deletions

View file

@ -11,6 +11,7 @@
#include "utils/list.h"
#include "common/defs.h"
#include "common/sae.h"
#include "config_ssid.h"
extern const char *wpa_supplicant_version;
@ -513,12 +514,9 @@ struct wpa_supplicant {
u8 sched_obss_scan;
u16 obss_scan_int;
u16 bss_max_idle_period;
enum {
SME_SAE_INIT,
SME_SAE_COMMIT,
SME_SAE_CONFIRM
} sae_state;
u16 sae_send_confirm;
#ifdef CONFIG_SAE
struct sae_data sae;
#endif /* CONFIG_SAE */
} sme;
#endif /* CONFIG_SME */