Commit Graph

7 Commits

Author SHA1 Message Date
Harald Welte 4c742e931a Allow opening of USB device by physical bus path
In case there are multiple devices with identical VID/PID, the
existing open_vid_pid mechanism is insufficient.
2020-02-29 20:37:14 +01:00
Harald Welte f6559dbdb6 use local variables in outgoing_send() to avoid starnge printf values 2019-01-30 21:26:25 +01:00
Harald Welte 66858d15a7 Remove 'actual_length' parameter of USB_tranfer_compl
We can simply cut the returned data octet string to the actual length
instead.  In this case, we must also adjust for the control pipe header
in case of CONTROL IN transfers.
2019-01-13 23:04:48 +01:00
Harald Welte 542f8cb128 USB_PT: Populate the USB_trasnfer_compl.transfer_hdl
... only this way the user can know which trasnfer has just completed.
2019-01-13 22:40:51 +01:00
Harald Welte 057787c56f USB_PT: Populate the USB_transfer_compl.status field 2019-01-13 22:39:08 +01:00
Harald Welte 5b160f6e2e USB_PT: Fix handling of buffer size for Control Read transfers
A control read transfer (bmAttributes & 0x80) consists of an 8 byte
header (setup phase) followed by a data phase containing the retunned
data.  So we have to add the wLength contents of the header to the
length of the buffer allocated for the transfer.
2019-01-13 22:37:03 +01:00
Harald Welte cdd33ebe7e WIP: TITAN TestPort for accessing USB devices from a USB host 2019-01-08 14:16:12 +01:00