Lines Matching defs:wpa_sm
25 struct wpa_sm { struct
26 u8 pmk[PMK_LEN_MAX];
27 size_t pmk_len;
28 struct wpa_ptk ptk, tptk;
29 int ptk_set, tptk_set;
30 bool tk_set; /* Whether any TK is configured to the driver */
31 unsigned int msg_3_of_4_ok:1;
32 u8 snonce[WPA_NONCE_LEN];
33 u8 anonce[WPA_NONCE_LEN]; /* ANonce from the last 1/4 msg */
34 int renew_snonce;
35 u8 rx_replay_counter[WPA_REPLAY_COUNTER_LEN];
59 struct wpa_sm_ctx *ctx; argument
61 void *scard_ctx; /* context for smartcard callbacks */
62 int fast_reauth; /* whether EAP fast re-authentication is enabled */
64 void *network_ctx;
65 int allowed_pairwise_cipher; /* bitfield of WPA_CIPHER_* */
66 int proactive_key_caching;
67 int eap_workaround;
68 void *eap_conf_ctx;
69 u8 ssid[32];
70 size_t ssid_len;
71 int wpa_ptk_rekey;
72 int wpa_deny_ptk0_rekey:1;
73 int p2p;
74 int wpa_rsc_relaxation;
75 int owe_ptk_workaround;
76 int beacon_prot;
77 int ext_key_id; /* whether Extended Key ID is enabled */
78 int use_ext_key_id; /* whether Extended Key ID has been detected
80 int keyidx_active; /* Key ID for the active TK */
86 bool force_kdk_derivation;
88 u8 own_addr[ETH_ALEN];
89 const char *ifname;
90 const char *bridge_ifname;
91 u8 bssid[ETH_ALEN];
93 unsigned int dot11RSNAConfigPMKLifetime;
94 unsigned int dot11RSNAConfigPMKReauthThreshold;
95 unsigned int dot11RSNAConfigSATimeout;
97 unsigned int dot11RSNA4WayHandshakeFailures;
100 unsigned int proto;
101 unsigned int pairwise_cipher;
102 unsigned int group_cipher;
103 unsigned int key_mgmt;
104 unsigned int mgmt_group_cipher;
106 int rsn_enabled; /* Whether RSN is enabled in configuration */
107 int mfp; /* 0 = disabled, 1 = optional, 2 = mandatory */
108 int ocv; /* Operating Channel Validation */
109 enum sae_pwe sae_pwe; /* SAE PWE generation options */
111 unsigned int sae_pk:1; /* whether SAE-PK is used */
112 unsigned int secure_ltf:1;
113 unsigned int secure_rtt:1;
114 unsigned int prot_range_neg:1;
115 unsigned int ssid_protection:1;
117 u8 *assoc_wpa_ie; /* Own WPA/RSN IE from (Re)AssocReq */
118 size_t assoc_wpa_ie_len;
119 u8 *assoc_rsnxe; /* Own RSNXE from (Re)AssocReq */
120 size_t assoc_rsnxe_len;
121 u8 *ap_wpa_ie, *ap_rsn_ie, *ap_rsnxe;
122 size_t ap_wpa_ie_len, ap_rsn_ie_len, ap_rsnxe_len;
123 u8 *ap_rsne_override, *ap_rsne_override_2, *ap_rsnxe_override;
124 size_t ap_rsne_override_len, ap_rsne_override_2_len,
125 ap_rsnxe_override_len;
128 struct wpa_tdls_peer *tdls;
129 int tdls_prohibited;
130 int tdls_chan_switch_prohibited;
131 int tdls_disabled;
134 int tdls_supported;
140 int tdls_external_setup;
143 int tdls_chan_switch;
147 u8 xxkey[PMK_LEN_MAX]; /* PSK or the second 256 bits of MSK, or the
149 size_t xxkey_len;
150 u8 pmk_r0[PMK_LEN_MAX];
151 size_t pmk_r0_len;
152 u8 pmk_r0_name[WPA_PMK_NAME_LEN];
153 u8 pmk_r1[PMK_LEN_MAX];
154 size_t pmk_r1_len;
155 u8 pmk_r1_name[WPA_PMK_NAME_LEN];
156 u8 mobility_domain[MOBILITY_DOMAIN_ID_LEN];
157 u8 key_mobility_domain[MOBILITY_DOMAIN_ID_LEN];
158 u8 r0kh_id[FT_R0KH_ID_MAX_LEN];
159 size_t r0kh_id_len;
160 u8 r1kh_id[FT_R1KH_ID_LEN];
161 unsigned int ft_completed:1;
162 unsigned int ft_reassoc_completed:1;
163 unsigned int ft_protocol:1;
164 int over_the_ds_in_progress;
165 u8 target_ap[ETH_ALEN]; /* over-the-DS target AP */
166 int set_ptk_after_assoc;
167 u8 mdie_ft_capab; /* FT Capability and Policy from target AP MDIE */
168 u8 *assoc_resp_ies; /* MDIE and FTIE from (Re)Association Response */
169 size_t assoc_resp_ies_len;
178 struct pasn_ft_r1kh *pasn_r1kh;
179 unsigned int n_pasn_r1kh;
184 u8 p2p_ip_addr[3 * 4];
188 struct wpabuf *test_assoc_ie;
189 struct wpabuf *test_eapol_m2_elems;
190 struct wpabuf *test_eapol_m4_elems;
191 int ft_rsnxe_used;
192 unsigned int oci_freq_override_eapol;
193 unsigned int oci_freq_override_eapol_g2;
194 unsigned int oci_freq_override_ft_assoc;
195 unsigned int oci_freq_override_fils_assoc;
196 unsigned int disable_eapol_g2_tx;
197 bool encrypt_eapol_m2;
198 bool encrypt_eapol_m4;
202 u8 fils_nonce[FILS_NONCE_LEN];
203 u8 fils_session[FILS_SESSION_LEN];
204 u8 fils_anonce[FILS_NONCE_LEN];
205 u8 fils_key_auth_ap[FILS_MAX_KEY_AUTH_LEN];
206 u8 fils_key_auth_sta[FILS_MAX_KEY_AUTH_LEN];
230 struct wpa_sm_mlo mlo; argument
241 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) in wpa_sm_set_state() argument