PERFORCE change 101797 for review

Hans Petter Selasky hselasky at FreeBSD.org
Mon Jul 17 20:14:53 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101797

Change 101797 by hselasky at hselasky_mini_itx on 2006/07/17 20:14:00

	It appears that Bluetooth devices can send packets larger than
	wMaxPacketsize on the interrupt pipe. Increase the buffer size to
	the maximum allowed, 255+2 bytes, pluss a little extra, 15 bytes.

Affected files ...

.. //depot/projects/usb/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c#5 edit
.. //depot/projects/usb/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h#4 edit

Differences ...

==== //depot/projects/usb/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c#5 (text+ko) ====

@@ -244,7 +244,7 @@
       .endpoint  = -1, /* any */
       .direction = UE_DIR_IN,
       .flags     = USBD_SHORT_XFER_OK,
-      .bufsize   = 0, /* use wMaxPacketSize */
+      .bufsize   = 0x110, /* bytes */
       .callback  = &ubt_intr_read_callback,
     },
 

==== //depot/projects/usb/src/sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h#4 (text+ko) ====



More information about the p4-projects mailing list