public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH] dpp: use peer_addr for pkex exchange request
Date: Fri,  6 Sep 2024 08:05:22 -0700	[thread overview]
Message-ID: <20240906150522.586887-1-prestwoj@gmail.com> (raw)

This was hard coded to broadcast and missed in the initial changes
to support starting PKEX to a specific peer.
---
 src/dpp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dpp.c b/src/dpp.c
index 5d56456d..6f2d45c2 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -1840,7 +1840,7 @@ static void dpp_send_pkex_exchange_request(struct dpp_sm *dpp)
 
 	l_put_le16(l_ecc_curve_get_ike_group(dpp->curve), &group);
 
-	iov[0].iov_len = dpp_build_header(own_mac, broadcast,
+	iov[0].iov_len = dpp_build_header(own_mac, dpp->peer_addr,
 				DPP_FRAME_PKEX_VERSION1_XCHG_REQUEST, hdr);
 	iov[0].iov_base = hdr;
 
-- 
2.34.1


             reply	other threads:[~2024-09-06 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-06 15:05 James Prestwood [this message]
2024-09-06 18:59 ` [PATCH] dpp: use peer_addr for pkex exchange request Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240906150522.586887-1-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox