aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-01-13 22:40:51 +0100
committerHarald Welte <laforge@gnumonks.org>2019-01-13 22:40:51 +0100
commit542f8cb128a25ee35c484a3c77da00278cce38d7 (patch)
tree32f6fab28f153061969c1d8957d111a999c40c97
parent057787c56f48f82dd4b17758feeb736a6a38c314 (diff)
USB_PT: Populate the USB_trasnfer_compl.transfer_hdl
... only this way the user can know which trasnfer has just completed.
-rw-r--r--src/USB_PT.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/USB_PT.cc b/src/USB_PT.cc
index 1022fb1..5c83729 100644
--- a/src/USB_PT.cc
+++ b/src/USB_PT.cc
@@ -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);