Lines Matching defs:wpa_state_machine

19 struct wpa_state_machine {  struct
20 struct wpa_authenticator *wpa_auth;
21 struct wpa_group *group;
23 u8 addr[ETH_ALEN];
24 u8 p2p_dev_addr[ETH_ALEN];
25 u16 auth_alg;
27 enum {
33 } wpa_ptk_state;
35 enum {
40 } wpa_ptk_group_state;
42 bool Init;
43 bool DeauthenticationRequest;
44 bool AuthenticationRequest;
45 bool ReAuthenticationRequest;
46 bool Disconnect;
47 u16 disconnect_reason; /* specific reason code to use with Disconnect */
48 u32 TimeoutCtr;
49 u32 GTimeoutCtr;
50 bool TimeoutEvt;
51 bool EAPOLKeyReceived;
52 bool EAPOLKeyPairwise;
53 bool EAPOLKeyRequest;
54 bool MICVerified;
55 bool GUpdateStationKeys;
56 u8 ANonce[WPA_NONCE_LEN];
57 u8 SNonce[WPA_NONCE_LEN];
58 u8 alt_SNonce[WPA_NONCE_LEN];
59 u8 alt_replay_counter[WPA_REPLAY_COUNTER_LEN];
60 u8 PMK[PMK_LEN_MAX];
61 unsigned int pmk_len;
62 u8 pmkid[PMKID_LEN]; /* valid if pmkid_set == 1 */
63 struct wpa_ptk PTK;
64 u8 keyidx_active;
65 bool use_ext_key_id;
66 bool PTK_valid;
67 bool pairwise_set;
68 bool tk_already_set;
69 int keycount;
70 bool Pair;
71 struct wpa_key_replay_counter {
74 } key_replay[RSNA_MAX_EAPOL_RETRIES],
75 prev_key_replay[RSNA_MAX_EAPOL_RETRIES];
76 bool PInitAKeys; /* WPA only, not in IEEE 802.11i */
77 bool PTKRequest; /* not in IEEE 802.11i state machine */
78 bool has_GTK;
79 bool PtkGroupInit; /* init request for PTK Group state machine */
81 u8 *last_rx_eapol_key; /* starting from IEEE 802.1X header */
82 size_t last_rx_eapol_key_len;
84 unsigned int changed:1;
85 unsigned int in_step_loop:1;
86 unsigned int pending_deinit:1;
87 unsigned int started:1;
88 unsigned int mgmt_frame_prot:1;
89 unsigned int mfpr:1;
90 unsigned int rx_eapol_key_secure:1;
91 unsigned int update_snonce:1;
92 unsigned int alt_snonce_valid:1;
93 unsigned int waiting_radius_psk:1;
95 unsigned int ft_completed:1;
96 unsigned int pmk_r1_name_valid:1;
98 unsigned int is_wnmsleep:1;
99 unsigned int pmkid_set:1;
101 unsigned int ptkstart_without_success;
104 int ocv_enabled;
107 u8 req_replay_counter[WPA_REPLAY_COUNTER_LEN];
108 int req_replay_counter_used;
110 u8 *wpa_ie;
111 size_t wpa_ie_len;
112 u8 *rsnxe;
113 size_t rsnxe_len;
114 u8 *rsn_selection;
115 size_t rsn_selection_len;
117 enum {
121 } wpa;
122 int pairwise; /* Pairwise cipher suite, WPA_CIPHER_* */
123 int wpa_key_mgmt; /* the selected WPA_KEY_MGMT_* */
124 struct rsn_pmksa_cache_entry *pmksa;
126 u32 dot11RSNAStatsTKIPLocalMICFailures;
127 u32 dot11RSNAStatsTKIPRemoteMICFailures;
129 bool rsn_override;
130 bool rsn_override_2;
133 u8 xxkey[PMK_LEN_MAX]; /* PSK or the second 256 bits of MSK, or the
135 size_t xxkey_len;
136 u8 pmk_r1[PMK_LEN_MAX];
137 unsigned int pmk_r1_len;
138 u8 pmk_r1_name[WPA_PMK_NAME_LEN]; /* PMKR1Name derived from FT Auth
140 u8 r0kh_id[FT_R0KH_ID_MAX_LEN]; /* R0KH-ID from FT Auth Request */
141 size_t r0kh_id_len;
142 u8 *assoc_resp_ftie;
144 void (*ft_pending_cb)(void *ctx, const u8 *dst,
147 void *ft_pending_cb_ctx;
148 struct wpabuf *ft_pending_req_ies;
149 u8 ft_pending_pull_nonce[FT_RRB_NONCE_LEN];
150 u8 ft_pending_auth_transaction;
151 u8 ft_pending_current_ap[ETH_ALEN];
152 int ft_pending_pull_left_retries;
155 int pending_1_of_4_timeout;
158 u8 ip_addr[4];
159 unsigned int ip_addr_bit;
163 u8 fils_key_auth_sta[FILS_MAX_KEY_AUTH_LEN];
164 u8 fils_key_auth_ap[FILS_MAX_KEY_AUTH_LEN];
165 size_t fils_key_auth_len;
166 unsigned int fils_completed:1;
170 struct wpabuf *dpp_z;
174 void (*eapol_status_cb)(void *ctx1, void *ctx2);
175 void *eapol_status_cb_ctx1;
176 void *eapol_status_cb_ctx2;
180 u8 peer_mld_addr[ETH_ALEN];
181 s8 mld_assoc_link_id;
182 u8 n_mld_affiliated_links;
184 struct mld_link {
189 } mld_links[MAX_NUM_MLD_LINKS];
192 bool ssid_protection;