Home | History | Annotate | Download | only in ap

Lines Matching defs:sae

21 #include "common/sae.h"
352 wpa_printf(MSG_DEBUG, "SAE: No password available");
360 sta->sae) < 0) {
361 wpa_printf(MSG_DEBUG, "SAE: Could not pick PWE");
368 sae_write_commit(sta->sae, buf, sta->sae->tmp ?
369 sta->sae->tmp->anti_clogging_token : NULL);
384 sae_write_confirm(sta->sae, buf);
441 if (!sta->sae)
443 if (sta->sae->state != SAE_COMMITTED &&
444 sta->sae->state != SAE_CONFIRMED)
484 wpa_hexdump(MSG_DEBUG, "SAE: Updated token key",
505 if (sta->sae->sync > dot11RSNASAESync) {
506 sta->sae->state = SAE_NOTHING;
507 sta->sae->sync = 0;
522 sta->sae->sync++;
523 wpa_printf(MSG_DEBUG, "SAE: Auth SAE retransmit timer for " MACSTR
525 MAC2STR(sta->addr), sta->sae->sync, sta->sae->state);
527 switch (sta->sae->state) {
546 wpa_printf(MSG_INFO, "SAE: Failed to retransmit: ret=%d", ret);
574 sta->sae->state = SAE_ACCEPTED;
576 sta->sae->pmk, sta->sae->pmkid);
588 switch (sta->sae->state) {
594 sta->sae->state = SAE_COMMITTED;
596 if (sae_process_commit(sta->sae) < 0)
610 * based on SAE finite state machine
616 sta->sae->state = SAE_CONFIRMED;
627 sta->sae->sync = 0;
633 "SAE confirm before commit");
639 if (sae_process_commit(sta->sae) < 0)
645 sta->sae->state = SAE_CONFIRMED;
646 sta->sae->sync = 0;
650 * In mesh case, follow SAE finite state machine and
655 sta->sae->sync++;
672 sta->sae->state = SAE_CONFIRMED;
687 sta->sae->sync++;
693 if (sae_process_commit(sta->sae) < 0)
707 wpa_printf(MSG_DEBUG, "SAE: remove the STA (" MACSTR
715 sta->sae->sync++;
718 sae_clear_temp_data(sta->sae);
724 wpa_printf(MSG_ERROR, "SAE: invalid state %d",
725 sta->sae->state);
734 struct sae_data *sae = sta->sae;
737 if (sae->state != SAE_COMMITTED)
740 wpa_printf(MSG_DEBUG, "SAE: Previously selected group: %d", sae->group);
743 if (sae->group == groups[i])
749 "SAE: Previously selected group not found from the current configuration");
757 "SAE: No alternative group enabled");
761 if (sae_set_group(sae, groups[i]) < 0)
766 wpa_printf(MSG_DEBUG, "SAE: Selected new group: %d", groups[i]);
777 if (!sta->sae) {
783 sta->sae = os_zalloc(sizeof(*sta->sae));
784 if (!sta->sae) {
788 sta->sae->state = SAE_NOTHING;
789 sta->sae->sync = 0;
794 "SAE: Cancel use of mesh PMKSA caching because peer starts SAE authentication");
804 "start SAE authentication (RX commit, status=%u)",
809 sta->sae->tmp) {
814 "SAE: Too short anti-clogging token request");
818 resp = sae_group_allowed(sta->sae,
823 "SAE: Invalid group in anti-clogging token request");
828 wpabuf_free(sta->sae->tmp->anti_clogging_token);
829 sta->sae->tmp->anti_clogging_token =
831 if (sta->sae->tmp->anti_clogging_token == NULL) {
833 "SAE: Failed to alloc for anti-clogging token");
848 "SAE: Failed to send commit message");
851 sta->sae->state = SAE_COMMITTED;
852 sta->sae->sync = 0;
860 sta->sae->tmp) {
862 "SAE: Peer did not accept our SAE group");
870 resp = sae_parse_commit(sta->sae, mgmt->u.auth.variable,
876 "SAE: Drop commit message from " MACSTR " due to reflection attack",
882 wpa_printf(MSG_DEBUG, "SAE: Drop commit message with "
894 "SAE: Request anti-clogging token from "
896 data = auth_build_token_req(hapd, sta->sae->group,
900 sta->sae->state = SAE_NOTHING;
908 "SAE authentication (RX confirm, status=%u)",
912 if (sta->sae->state >= SAE_CONFIRMED ||
914 if (sae_check_confirm(sta->sae, mgmt->u.auth.variable,
925 "unexpected SAE authentication transaction %u (status=%u)",
951 * auth_sae_init_committed - Send COMMIT and start SAE in committed state
957 * sta->sae structure should be initialized appropriately via a call to
964 if (!sta->sae || !sta->sae->tmp)
967 if (sta->sae->state != SAE_NOTHING)
974 sta->sae->state = SAE_COMMITTED;
975 sta->sae->sync = 0;
1724 "SAE: Failed to initialize WPA state machine");
2085 "SAE: No PMKSA cache entry found for "
2089 wpa_printf(MSG_DEBUG, "SAE: " MACSTR
2095 wpa_printf(MSG_DEBUG, "SAE: " MACSTR " tried to use "
2096 "SAE AKM after non-SAE auth_alg %u",