USB_PT: Populate the USB_trasnfer_compl.transfer_hdl

... only this way the user can know which trasnfer has just completed.
This commit is contained in:
Harald Welte 2019-01-13 22:40:51 +01:00
parent 057787c56f
commit 542f8cb128
1 changed files with 1 additions and 0 deletions

View File

@ -489,6 +489,7 @@ void USB__PT_PROVIDER::transfer_completed(USB_Transfer *t)
{
USB__transfer__compl xfc;
xfc.device__hdl() = t->mDev->mID;
xfc.transfer__hdl() = t->mID;
xfc.ttype() = ttype_usb2titan((enum libusb_transfer_type) t->mXfer->type);
xfc.endpoint() = t->mXfer->endpoint;
xfc.data() = OCTETSTRING(t->mXfer->length, t->mXfer->buffer);