Lines Matching refs:sae

28                sae_state_txt(sta->sae->state), sae_state_txt(state),  in sae_set_state()
30 sta->sae->state = state; in sae_set_state()
64 if (sta->sae->tmp) { in auth_build_sae_commit()
65 rx_id = sta->sae->tmp->pw_id; in auth_build_sae_commit()
66 use_pt = sta->sae->h2e; in auth_build_sae_commit()
83 sae_prepare_commit_pt(sta->sae, pt, hapd->own_addr, sta->addr, in auth_build_sae_commit()
91 sta->sae) < 0) { in auth_build_sae_commit()
100 sae_write_commit(sta->sae, buf, sta->sae->tmp ? in auth_build_sae_commit()
101 sta->sae->tmp->anti_clogging_token : NULL, in auth_build_sae_commit()
121 if (sae_write_confirm(sta->sae, buf) < 0) { in auth_build_sae_confirm()
139 if (!data && sta->sae->tmp && sta->sae->tmp->pw_id) { in auth_sae_send_commit()
146 if (sta->sae->tmp && sta->sae->h2e) { in auth_sae_send_commit()
203 if (sta->sae && in use_sae_anti_clogging()
204 (sta->sae->state == SAE_COMMITTED || in use_sae_anti_clogging()
205 sta->sae->state == SAE_CONFIRMED)) { in use_sae_anti_clogging()
227 if (sta->sae->sync > hapd->conf->sae_sync) { in sae_check_big_sync()
229 sta->sae->sync = 0; in sae_check_big_sync()
247 sta->sae->pmk, sta->sae->pmkid, false); in sae_accept_sta()
263 MAC2STR(sta->addr), sae_state_txt(sta->sae->state), in sae_sm_step()
265 switch (sta->sae->state) { in sae_sm_step()
268 if (sta->sae->tmp) { in sae_sm_step()
269 sta->sae->h2e = in sae_sm_step()
282 if (sae_process_commit(sta->sae) < 0) { in sae_sm_step()
286 sta->sae->sync = 0; in sae_sm_step()
293 if (sae_process_commit(sta->sae) < 0) { in sae_sm_step()
302 sta->sae->sync = 0; in sae_sm_step()
330 sta->sae->sync++; in sae_sm_step()
339 if (sae_process_commit(sta->sae) < 0) { in sae_sm_step()
349 sta->sae->send_confirm = 0xffff; in sae_sm_step()
363 if (sae_process_commit(sta->sae) < 0) { in sae_sm_step()
367 sta->sae->sync = 0; in sae_sm_step()
372 sta->sae->sync++; in sae_sm_step()
375 sae_clear_temp_data(sta->sae); in sae_sm_step()
383 sta->sae->state); in sae_sm_step()
425 struct sae_data *sae) in check_sae_rejected_groups() argument
431 if (!sae->tmp) in check_sae_rejected_groups()
433 groups = sae->tmp->peer_rejected_groups; in check_sae_rejected_groups()
479 if (!sta->sae) { in handle_auth_sae()
487 sta->sae = os_zalloc(sizeof(*sta->sae)); in handle_auth_sae()
488 if (!sta->sae) { in handle_auth_sae()
493 sta->sae->sync = 0; in handle_auth_sae()
504 if (sta->sae->state == SAE_COMMITTED) { in handle_auth_sae()
515 sae_group_allowed(sta->sae, groups, in handle_auth_sae()
526 sae_clear_data(sta->sae); in handle_auth_sae()
530 resp = sae_parse_commit(sta->sae, buf, len, &token, &token_len, default_group, in handle_auth_sae()
557 if (check_sae_rejected_groups(hapd, sta->sae)) { in handle_auth_sae()
572 if (sta->sae->tmp) in handle_auth_sae()
573 h2e = sta->sae->h2e; in handle_auth_sae()
582 sta->sae->group, in handle_auth_sae()
613 if (sta->sae->state == SAE_ACCEPTED && in handle_auth_sae()
614 (peer_send_confirm <= sta->sae->rc || in handle_auth_sae()
621 peer_send_confirm, sta->sae->rc); in handle_auth_sae()
625 if (sae_check_confirm(sta->sae, buf, len) < 0) { in handle_auth_sae()
629 sta->sae->rc = peer_send_confirm; in handle_auth_sae()