3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

wsc: Use handshake to pass vendor ies

Instead of passing them directly via netdev_connect
This commit is contained in:
Denis Kenzior 2023-11-30 16:28:11 -06:00
parent 788c7ed010
commit 0bb181a368

View File

@ -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);