Lines Matching defs:pkex
1272 "No matching peer bootstrapping key found for PKEX - ignore message");
1279 "Mismatching peer PKEX bootstrapping key - ignore message");
2907 "DPP: Frequency %u MHz not supported or does not allow PKEX initiation in the current channel list",
2915 struct dpp_pkex *pkex)
2917 if (pkex->freq == 2437)
2918 pkex->freq = 5745;
2919 else if (pkex->freq == 5745)
2920 pkex->freq = 5220;
2921 else if (pkex->freq == 5220)
2922 pkex->freq = 60480;
2926 if (wpas_dpp_allow_ir(wpa_s, pkex->freq) == 1) {
2928 pkex->freq);
2933 return wpas_dpp_pkex_next_channel(wpa_s, pkex);
2942 /* Delete PKEX code and identifier on successful completion of
2943 * PKEX. We are not supposed to reuse these without being
2944 * explicitly requested to perform PKEX again. */
2945 wpa_printf(MSG_DEBUG, "DPP: Delete PKEX code/identifier");
2969 wpa_printf(MSG_DEBUG, "DPP: Start authentication after PKEX (cmd: %s)",
3031 struct dpp_pkex *pkex;
3039 pkex = dpp_pkex_init(wpa_s, wpa_s->dpp_pkex_bi, wpa_s->own_addr,
3043 if (!pkex)
3045 pkex->forced_ver = ver != PKEX_VER_AUTO;
3049 return dpp_tcp_pkex_init(wpa_s->dpp, pkex, ipaddr, tcp_port,
3056 wpa_s->dpp_pkex = pkex;
3057 msg = pkex->exchange_req;
3061 pkex->freq = 2437;
3064 MAC2STR(broadcast), pkex->freq,
3067 offchannel_send_action(wpa_s, pkex->freq, broadcast,
3073 pkex->exch_req_wait_time = wait_time;
3074 pkex->exch_req_tries = 1;
3083 struct dpp_pkex *pkex = wpa_s->dpp_pkex;
3085 if (!pkex || !pkex->exchange_req)
3087 if (pkex->exch_req_tries >= 5) {
3088 if (wpas_dpp_pkex_next_channel(wpa_s, pkex) < 0) {
3090 if (pkex->v2 && !pkex->forced_ver) {
3099 "No response from PKEX peer");
3100 dpp_pkex_free(pkex);
3104 pkex->exch_req_tries = 0;
3107 pkex->exch_req_tries++;
3108 wpa_printf(MSG_DEBUG, "DPP: Retransmit PKEX Exchange Request (try %u)",
3109 pkex->exch_req_tries);
3111 MAC2STR(broadcast), pkex->freq,
3112 pkex->v2 ? DPP_PA_PKEX_EXCHANGE_REQ :
3114 offchannel_send_action(wpa_s, pkex->freq, broadcast,
3116 wpabuf_head(pkex->exchange_req),
3117 wpabuf_len(pkex->exchange_req),
3118 pkex->exch_req_wait_time,
3131 struct dpp_pkex *pkex = wpa_s->dpp_pkex;
3137 " result=%s (PKEX)",
3142 if (!pkex) {
3144 "DPP: Ignore TX status since there is no ongoing PKEX exchange");
3148 if (pkex->failed) {
3150 "DPP: Terminate PKEX exchange due to an earlier error");
3151 if (pkex->t > pkex->own_bi->pkex_t)
3152 pkex->own_bi->pkex_t = pkex->t;
3153 dpp_pkex_free(pkex);
3158 if (pkex->exch_req_wait_time && pkex->exchange_req) {
3159 /* Wait for PKEX Exchange Response frame and retry request if
3162 eloop_register_timeout(pkex->exch_req_wait_time / 1000,
3163 (pkex->exch_req_wait_time % 1000) * 1000,
3178 wpa_printf(MSG_DEBUG, "DPP: PKEX Exchange Request from " MACSTR,
3183 "DPP: Ignore PKEXv2 Exchange Request when configured to be PKEX v1 only");
3188 "DPP: Ignore PKEXv1 Exchange Request when configured to be PKEX v2 only");
3192 /* TODO: Support multiple PKEX codes by iterating over all the enabled
3197 "DPP: No PKEX code configured - ignore request");
3204 "DPP: PKEX Exchange Request is from local Controller - ignore request");
3212 "DPP: Already in PKEX session - ignore new request");
3231 "DPP: Started PB PKEX (no more PB announcements)");
3257 wpa_printf(MSG_DEBUG, "DPP: PKEX Exchange Response from " MACSTR,
3260 /* TODO: Support multiple PKEX codes by iterating over all the enabled
3265 wpa_printf(MSG_DEBUG, "DPP: No matching PKEX session");
3278 wpa_printf(MSG_DEBUG, "DPP: Send PKEX Commit-Reveal Request to " MACSTR,
3314 "DPP: Peer bootstrap key from PKEX does not match PB announcement response hash");
3316 "DPP: Peer provided bootstrap key hash(chirp) from PB PKEX",
3340 struct dpp_pkex *pkex = wpa_s->dpp_pkex;
3342 wpa_printf(MSG_DEBUG, "DPP: PKEX Commit-Reveal Request from " MACSTR,
3345 if (!pkex || pkex->initiator || !pkex->exchange_done) {
3346 wpa_printf(MSG_DEBUG, "DPP: No matching PKEX session");
3350 msg = dpp_pkex_rx_commit_reveal_req(pkex, hdr, buf, len);
3353 if (pkex->failed) {
3354 wpa_printf(MSG_DEBUG, "DPP: Terminate PKEX exchange");
3355 if (pkex->t > pkex->own_bi->pkex_t)
3356 pkex->own_bi->pkex_t = pkex->t;
3363 wpa_printf(MSG_DEBUG, "DPP: Send PKEX Commit-Reveal Response to "
3389 struct dpp_pkex *pkex = wpa_s->dpp_pkex;
3392 wpa_printf(MSG_DEBUG, "DPP: PKEX Commit-Reveal Response from " MACSTR,
3395 if (!pkex || !pkex->initiator || !pkex->exchange_done) {
3396 wpa_printf(MSG_DEBUG, "DPP: No matching PKEX session");
3400 res = dpp_pkex_rx_commit_reveal_resp(pkex, hdr, buf, len);
3417 "DPP: Peer bootstrap key from PKEX does not match PB announcement hash");
3419 "DPP: Peer provided bootstrap key hash(chirp) from PB PKEX",
3436 "DPP: Start authentication after PKEX with parameters: %s",
3453 struct dpp_pkex *pkex;
3460 "DPP: Sending previously generated PKEX Exchange Request to "
3473 wpa_printf(MSG_DEBUG, "DPP: Initiate PKEX for push button with "
3486 pkex = dpp_pkex_init(wpa_s, wpa_s->dpp_pkex_bi, wpa_s->own_addr,
3490 if (!pkex) {
3494 pkex->freq = freq;
3496 wpa_s->dpp_pkex = pkex;
3504 offchannel_send_action(wpa_s, pkex->freq, src,
3508 pkex->exch_req_wait_time = 2000;
3509 pkex->exch_req_tries = 1;
3610 /* Start a wait before allowing PKEX to be initiated */
3617 res = dpp_bootstrap_gen(wpa_s->dpp, "type=pkex");
4703 "DPP: Identified bootstrap info not for PKEX");
4759 /* TODO: Support multiple PKEX info entries */
4783 /* TODO: Support multiple PKEX entries */
4791 /* TODO: Remove dpp_pkex only if it is for the identified PKEX code */
5512 "DPP: Wait for push button announcement response and PKEX on %d MHz",
5590 "wait for AP/Configurator to allow PKEX to be initiated");
5602 "start push button PKEX responder on the discovered channel (%d MHz)",
5717 res = dpp_bootstrap_gen(wpa_s->dpp, "type=pkex");