Lines Matching refs:sae
352 sta->sae) < 0) { in auth_build_sae_commit()
360 sae_write_commit(sta->sae, buf, sta->sae->tmp ? in auth_build_sae_commit()
361 sta->sae->tmp->anti_clogging_token : NULL); in auth_build_sae_commit()
376 sae_write_confirm(sta->sae, buf); in auth_build_sae_confirm()
433 if (!sta->sae) in use_sae_anti_clogging()
435 if (sta->sae->state != SAE_COMMITTED && in use_sae_anti_clogging()
436 sta->sae->state != SAE_CONFIRMED) in use_sae_anti_clogging()
497 if (sta->sae->sync > dot11RSNASAESync) { in sae_check_big_sync()
498 sta->sae->state = SAE_NOTHING; in sae_check_big_sync()
499 sta->sae->sync = 0; in sae_check_big_sync()
514 sta->sae->sync++; in auth_sae_retransmit_timer()
516 switch (sta->sae->state) { in auth_sae_retransmit_timer()
563 sta->sae->state = SAE_ACCEPTED; in sae_accept_sta()
565 sta->sae->pmk, sta->sae->pmkid); in sae_accept_sta()
577 switch (sta->sae->state) { in sae_sm_step()
583 sta->sae->state = SAE_COMMITTED; in sae_sm_step()
585 if (sae_process_commit(sta->sae) < 0) in sae_sm_step()
605 sta->sae->state = SAE_CONFIRMED; in sae_sm_step()
616 sta->sae->sync = 0; in sae_sm_step()
628 if (sae_process_commit(sta->sae) < 0) in sae_sm_step()
634 sta->sae->state = SAE_CONFIRMED; in sae_sm_step()
635 sta->sae->sync = 0; in sae_sm_step()
644 sta->sae->sync++; in sae_sm_step()
661 sta->sae->state = SAE_CONFIRMED; in sae_sm_step()
676 sta->sae->sync++; in sae_sm_step()
682 if (sae_process_commit(sta->sae) < 0) in sae_sm_step()
704 sta->sae->sync++; in sae_sm_step()
707 sae_clear_temp_data(sta->sae); in sae_sm_step()
714 sta->sae->state); in sae_sm_step()
728 if (!sta->sae) { in handle_auth_sae()
734 sta->sae = os_zalloc(sizeof(*sta->sae)); in handle_auth_sae()
735 if (!sta->sae) { in handle_auth_sae()
739 sta->sae->state = SAE_NOTHING; in handle_auth_sae()
740 sta->sae->sync = 0; in handle_auth_sae()
760 sta->sae->tmp) { in handle_auth_sae()
769 resp = sae_group_allowed(sta->sae, in handle_auth_sae()
779 wpabuf_free(sta->sae->tmp->anti_clogging_token); in handle_auth_sae()
780 sta->sae->tmp->anti_clogging_token = in handle_auth_sae()
782 if (sta->sae->tmp->anti_clogging_token == NULL) { in handle_auth_sae()
802 sta->sae->state = SAE_COMMITTED; in handle_auth_sae()
803 sta->sae->sync = 0; in handle_auth_sae()
811 resp = sae_parse_commit(sta->sae, mgmt->u.auth.variable, in handle_auth_sae()
837 data = auth_build_token_req(hapd, sta->sae->group, in handle_auth_sae()
841 sta->sae->state = SAE_NOTHING; in handle_auth_sae()
853 if (sta->sae->state >= SAE_CONFIRMED || in handle_auth_sae()
855 if (sae_check_confirm(sta->sae, mgmt->u.auth.variable, in handle_auth_sae()
905 if (!sta->sae || !sta->sae->tmp) in auth_sae_init_committed()
908 if (sta->sae->state != SAE_NOTHING) in auth_sae_init_committed()
915 sta->sae->state = SAE_COMMITTED; in auth_sae_init_committed()
916 sta->sae->sync = 0; in auth_sae_init_committed()