Date: Mon, 17 Jul 2006 20:14:52 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 101797 for review Message-ID: <200607172014.k6HKEqnu040583@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101797 Change 101797 by hselasky@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) ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607172014.k6HKEqnu040583>