2 |
|
* hostapd - IEEE 802.11i-2004 / WPA Authenticator: Internal definitions |
3 |
|
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi> |
4 |
|
* |
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. |
8 |
< |
* |
9 |
< |
* Alternatively, this software may be distributed under the terms of BSD |
10 |
< |
* license. |
11 |
< |
* |
12 |
< |
* See README and COPYING for more details. |
5 |
> |
* This software may be distributed under the terms of the BSD license. |
6 |
> |
* See README for more details. |
7 |
|
*/ |
8 |
|
|
9 |
|
#ifndef WPA_AUTH_I_H |
63 |
|
Boolean pairwise_set; |
64 |
|
int keycount; |
65 |
|
Boolean Pair; |
66 |
< |
struct { |
66 |
> |
struct wpa_key_replay_counter { |
67 |
|
u8 counter[WPA_REPLAY_COUNTER_LEN]; |
68 |
|
Boolean valid; |
69 |
< |
} key_replay[RSNA_MAX_EAPOL_RETRIES]; |
69 |
> |
} key_replay[RSNA_MAX_EAPOL_RETRIES], |
70 |
> |
prev_key_replay[RSNA_MAX_EAPOL_RETRIES]; |
71 |
|
Boolean PInitAKeys; /* WPA only, not in IEEE 802.11i */ |
72 |
|
Boolean PTKRequest; /* not in IEEE 802.11i state machine */ |
73 |
|
Boolean has_GTK; |
81 |
|
unsigned int pending_deinit:1; |
82 |
|
unsigned int started:1; |
83 |
|
unsigned int mgmt_frame_prot:1; |
84 |
+ |
unsigned int rx_eapol_key_secure:1; |
85 |
+ |
unsigned int update_snonce:1; |
86 |
|
#ifdef CONFIG_IEEE80211R |
87 |
|
unsigned int ft_completed:1; |
88 |
|
unsigned int pmk_r1_name_valid:1; |
89 |
|
#endif /* CONFIG_IEEE80211R */ |
90 |
+ |
unsigned int is_wnmsleep:1; |
91 |
|
|
92 |
|
u8 req_replay_counter[WPA_REPLAY_COUNTER_LEN]; |
93 |
|
int req_replay_counter_used; |
118 |
|
* message 2/4 */ |
119 |
|
u8 *assoc_resp_ftie; |
120 |
|
#endif /* CONFIG_IEEE80211R */ |
121 |
+ |
|
122 |
+ |
int pending_1_of_4_timeout; |
123 |
|
}; |
124 |
|
|
125 |
|
|
145 |
|
u8 GTK[2][WPA_GTK_MAX_LEN]; |
146 |
|
u8 GNonce[WPA_NONCE_LEN]; |
147 |
|
Boolean changed; |
148 |
+ |
Boolean first_sta_seen; |
149 |
+ |
Boolean reject_4way_hs_for_entropy; |
150 |
|
#ifdef CONFIG_IEEE80211W |
151 |
|
u8 IGTK[2][WPA_IGTK_LEN]; |
152 |
|
int GN_igtk, GM_igtk; |