From owner-p4-projects@FreeBSD.ORG Mon Jul 17 20:14:53 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2B9EF16A4E2; Mon, 17 Jul 2006 20:14:53 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06BEE16A4DA for ; Mon, 17 Jul 2006 20:14:53 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C65CE43D53 for ; Mon, 17 Jul 2006 20:14:52 +0000 (GMT) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6HKEqhD040586 for ; Mon, 17 Jul 2006 20:14:52 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6HKEqnu040583 for perforce@freebsd.org; Mon, 17 Jul 2006 20:14:52 GMT (envelope-from hselasky@FreeBSD.org) Date: Mon, 17 Jul 2006 20:14:52 GMT Message-Id: <200607172014.k6HKEqnu040583@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 101797 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 20:14:53 -0000 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) ====