Lines Matching refs:sae
19 #include "common/sae.h"
76 sae_set_group(&wpa_s->sme.sae, group) == 0) {
77 wpa_dbg(wpa_s, MSG_DEBUG, "SME: Selected SAE group %d",
78 wpa_s->sme.sae.group);
79 wpa_s->sme.sae.akmp = external ?
116 wpa_printf(MSG_DEBUG, "SAE: TESTING - commit override");
133 "SAE: Failed to allocate password");
141 "SAE: Failed to allocate password");
151 "SAE: No password found from external storage");
158 "SAE: Failed to allocate password");
166 wpa_printf(MSG_DEBUG, "SAE: No password available");
170 if (reuse && wpa_s->sme.sae.tmp &&
171 ether_addr_equal(addr, wpa_s->sme.sae.tmp->bssid)) {
173 "SAE: Reuse previously generated PWE on a retry with the same AP");
174 use_pt = wpa_s->sme.sae.h2e;
175 use_pk = wpa_s->sme.sae.pk;
179 wpa_printf(MSG_DEBUG, "SAE: Failed to select group");
186 "SAE: BSS not available, update scan result to get BSS");
220 "SAE: Cannot use PK with the selected AP");
235 "SAE: Cannot use H2E with the selected AP");
243 sae_prepare_commit_pt(&wpa_s->sme.sae, ssid->pt,
250 &wpa_s->sme.sae) < 0) {
251 wpa_printf(MSG_DEBUG, "SAE: Could not pick PWE");
254 if (wpa_s->sme.sae.tmp) {
255 os_memcpy(wpa_s->sme.sae.tmp->bssid, addr, ETH_ALEN);
257 wpa_s->sme.sae.pk = 1;
259 os_memcpy(wpa_s->sme.sae.tmp->own_addr, wpa_s->own_addr,
261 os_memcpy(wpa_s->sme.sae.tmp->peer_addr, addr, ETH_ALEN);
262 sae_pk_set_password(&wpa_s->sme.sae, password);
282 if (sae_write_commit(&wpa_s->sme.sae, buf, wpa_s->sme.sae_token,
314 sae_write_confirm(&wpa_s->sme.sae, buf);
649 "SAE enabled, but target BSS does not advertise RSN");
654 wpa_dbg(wpa_s, MSG_DEBUG, "Prefer DPP over SAE when both are enabled");
660 "SAE enabled, but disallowing SAE auth_alg without PMF");
662 wpa_dbg(wpa_s, MSG_DEBUG, "Using SAE auth_alg");
667 "SAE enabled, but target BSS does not advertise SAE AKM for RSN");
1026 "PMKSA cache entry found - try to use PMKSA caching instead of new SAE authentication");
1049 wpa_s->sme.sae.state = start ? SAE_COMMITTED : SAE_CONFIRMED;
1307 wpa_s->sme.sae.state = SAE_NOTHING;
1308 wpa_s->sme.sae.send_confirm = 0;
1383 wpa_printf(MSG_DEBUG, "SAE: Failed to build SAE commit");
1387 wpa_s->sme.sae.state = SAE_COMMITTED;
1429 params.pmkid = wpa_s->sme.sae.pmkid;
1470 wpa_printf(MSG_DEBUG, "SAE: Confirm message buf alloc failure");
1474 wpa_s->sme.sae.state = SAE_CONFIRMED;
1479 wpa_printf(MSG_DEBUG, "SAE: Auth Confirm buf alloc failure");
1505 /* Old drivers which follow initial implementation send SAE AKM
1506 * for both SAE and FT-SAE connections. In that case, determine
1549 wpa_s->sme.sae.state = SAE_NOTHING;
1550 wpa_s->sme.sae.send_confirm = 0;
1594 "SAE: Invalid length of the Rejected Groups element payload: %zu",
1606 wpa_printf(MSG_DEBUG, "SAE: Rejected group %u is %s",
1666 wpa_dbg(wpa_s, MSG_DEBUG, "SME: SAE authentication transaction %u "
1671 wpa_s->sme.sae.state == SAE_COMMITTED &&
1684 wpa_hexdump(MSG_DEBUG, "SME: SAE anti-clogging token request",
1688 "SME: Too short SAE anti-clogging token request");
1693 "SME: SAE anti-clogging token requested (group %u)",
1695 if (sae_group_allowed(&wpa_s->sme.sae, groups, group) !=
1698 "SME: SAE group %u of anti-clogging request is invalid",
1705 h2e = wpa_s->sme.sae.h2e;
1711 "SME: Too short SAE anti-clogging token container");
1721 "SME: Invalid SAE anti-clogging token container header");
1732 "SME: Failed to allocate SAE token");
1756 wpa_s->sme.sae.state == SAE_COMMITTED &&
1759 wpa_dbg(wpa_s, MSG_DEBUG, "SME: SAE group not supported");
1761 wpa_s->sme.sae.group);
1765 wpa_dbg(wpa_s, MSG_DEBUG, "SME: Try next enabled SAE group");
1809 wpa_dbg(wpa_s, MSG_DEBUG, "SME SAE commit");
1814 if (wpa_s->sme.sae.state != SAE_COMMITTED) {
1816 "SAE: Ignore commit message while waiting for confirm");
1819 if (wpa_s->sme.sae.h2e && status_code == WLAN_STATUS_SUCCESS) {
1821 "SAE: Unexpected use of status code 0 in SAE commit when H2E was expected");
1824 if ((!wpa_s->sme.sae.h2e || wpa_s->sme.sae.pk) &&
1827 "SAE: Unexpected use of status code for H2E in SAE commit when H2E was not expected");
1830 if (!wpa_s->sme.sae.pk &&
1833 "SAE: Unexpected use of status code for PK in SAE commit when PK was not expected");
1839 res = sae_parse_commit(&wpa_s->sme.sae, data, len, NULL, NULL,
1846 "SAE: Drop commit message due to reflection attack");
1852 if (wpa_s->sme.sae.tmp &&
1855 wpa_s->sme.sae.tmp->peer_rejected_groups))
1858 if (sae_process_commit(&wpa_s->sme.sae) < 0) {
1859 wpa_printf(MSG_DEBUG, "SAE: Failed to process peer "
1881 wpa_dbg(wpa_s, MSG_DEBUG, "SME SAE confirm");
1882 if (wpa_s->sme.sae.state != SAE_CONFIRMED)
1884 if (sae_check_confirm(&wpa_s->sme.sae, data, len,
1892 wpa_s->sme.sae.state = SAE_ACCEPTED;
1893 sae_clear_temp_data(&wpa_s->sme.sae);
1912 "SME: SAE completed - setting PMK for 4-way handshake");
1913 wpa_sm_set_pmk(wpa_s->wpa, wpa_s->sme.sae.pmk, wpa_s->sme.sae.pmk_len,
1914 wpa_s->sme.sae.pmkid, bssid);
1918 * completed SAE exchange. In practice, this will add the PMKID
1928 wpa_s->sme.sae.pmkid, true) < 0)
2040 "SME: Clear SAE state with rejected groups due to continuous failures");
2866 "PMKSA caching attempt rejected - drop PMKSA cache entry and fall back to SAE authentication");
2997 sae_clear_data(&wpa_s->sme.sae);