diff mbox series

[6/7] wsc: Use handshake to pass vendor ies

Message ID 20231201040020.161143-6-denkenz@gmail.com (mailing list archive)
State New
Headers show
Series [1/7] handshake: Add cleanup function for handshake_state | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

Denis Kenzior Dec. 1, 2023, 4 a.m. UTC
Instead of passing them directly via netdev_connect
---
 src/wsc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/wsc.c b/src/wsc.c
index cb2e2c3e2ad0..b063313ac6dc 100644
--- a/src/wsc.c
+++ b/src/wsc.c
@@ -382,7 +382,9 @@  static int wsc_enrollee_connect(struct wsc_enrollee *wsce, struct scan_bss *bss,
 	if (ies_num)
 		memcpy(ie_iov + 1, ies, sizeof(struct iovec) * ies_num);
 
-	r = netdev_connect(wsce->netdev, bss, hs, ie_iov, 1 + ies_num,
+	handshake_state_set_vendor_ies(hs, ie_iov, 1 + ies_num);
+
+	r = netdev_connect(wsce->netdev, bss, hs, NULL, 0,
 				wsc_enrollee_netdev_event,
 				wsc_enrollee_connect_cb, wsce);
 	l_free(ie_iov[0].iov_base);