diff options
Diffstat (limited to 'sys/dev/usb/usb_transfer.c')
-rw-r--r-- | sys/dev/usb/usb_transfer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c index b355d1a..11d67d5 100644 --- a/sys/dev/usb/usb_transfer.c +++ b/sys/dev/usb/usb_transfer.c @@ -2196,9 +2196,10 @@ usbd_callback_wrapper(struct usb_xfer_queue *pq) } } +#if USB_HAVE_PF if (xfer->usb_state != USB_ST_SETUP) usbpf_xfertap(xfer, USBPF_XFERTAP_DONE); - +#endif /* call processing routine */ (xfer->callback) (xfer, xfer->error); @@ -2386,8 +2387,9 @@ usbd_transfer_start_cb(void *arg) DPRINTF("start\n"); +#if USB_HAVE_PF usbpf_xfertap(xfer, USBPF_XFERTAP_SUBMIT); - +#endif /* start the transfer */ (ep->methods->start) (xfer); @@ -2565,8 +2567,9 @@ usbd_pipe_start(struct usb_xfer_queue *pq) } DPRINTF("start\n"); +#if USB_HAVE_PF usbpf_xfertap(xfer, USBPF_XFERTAP_SUBMIT); - +#endif /* start USB transfer */ (ep->methods->start) (xfer); |