Index: uspace/lib/usbhost/src/bandwidth.c
===================================================================
--- uspace/lib/usbhost/src/bandwidth.c	(revision fc0271a550440de57d1676cc1511bf5eedae0d8f)
+++ uspace/lib/usbhost/src/bandwidth.c	(revision 6d918889a2c99f48b3fbda631a4e421e12b9e3e4)
@@ -36,4 +36,5 @@
 #include <usb/host/bandwidth.h>
 #include <usb/host/endpoint.h>
+#include <usb/host/bus.h>
 
 #include <assert.h>
@@ -42,7 +43,6 @@
 /** Calculate bandwidth that needs to be reserved for communication with EP.
  * Calculation follows USB 1.1 specification.
- * @param speed Device's speed.
- * @param type Type of the transfer.
- * @param size Number of byte to transfer.
+ * @param ep Registered endpoint
+ * @param size Number of bytes to transfer.
  * @param max_packet_size Maximum bytes in one packet.
  */
@@ -50,4 +50,5 @@
 {
 	assert(ep);
+	assert(ep->device);
 
 	const usb_transfer_type_t type = ep->transfer_type;
@@ -66,5 +67,5 @@
 	 * transaction, but I did not find text in USB spec to confirm this */
 	/* NOTE: All data packets will be considered to be max_packet_size */
-	switch (ep->speed)
+	switch (ep->device->speed)
 	{
 	case USB_SPEED_LOW:
