From owner-freebsd-usb@FreeBSD.ORG Mon Jul 17 18:08:03 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A01116A4E5 for ; Mon, 17 Jul 2006 18:08:03 +0000 (UTC) (envelope-from niki@totalterror.net) Received: from mail.interbgc.com (mx03.cablebg.net [217.9.224.230]) by mx1.FreeBSD.org (Postfix) with SMTP id BB82B43D4C for ; Mon, 17 Jul 2006 18:07:58 +0000 (GMT) (envelope-from niki@totalterror.net) Received: (qmail 933 invoked from network); 17 Jul 2006 18:07:56 -0000 Received: from niki@totalterror.net by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(0.1/8.0):. Processed in 1.275535 secs); 17 Jul 2006 18:07:56 -0000 X-Spam-Status: No, hits=0.1 required=8.0 Received: from niked.ddns.cablebg.net (HELO tormentor.totalterror.net) (85.130.14.211) by mx03.interbgc.com with SMTP; 17 Jul 2006 18:07:54 -0000 Received: (qmail 86977 invoked from network); 17 Jul 2006 18:07:54 -0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 17 Jul 2006 18:07:54 -0000 Message-ID: <44BBD1F9.5000804@totalterror.net> Date: Mon, 17 Jul 2006 21:07:53 +0300 From: Niki Denev User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: USB bluetooth dongles X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 18:08:03 -0000 Hello, i've installed the ubt driver from the subversion repo at turbocat.com, and now my BT dongle seems to work, but with some strange side effects. For example i can connect to my GPS receiver properly, and get output (rfcomm_spp -a gps -c 1) but when i'm trying to issue a inquiry command with discoverable devices nearby i get : vaio# hccontrol -n ubt0hci Inquiry ubt0:ubt_intr_read_complete:883: Invalid HCI event frame size, length=15, pktlen=17 and nothing is discovered. Also when exiting from rfcomm_spp with ctrl-c i get this : ng_btsocket_rfcomm_receive_uih: Got UIH for dlci=2 in invalid state=5, flags=0x3 This is FreeBSD 6.1-STABLE running on Sony VAIO PCG-U3. P.S.: I have also working ural(4) device with the new usb stack. It seems more reliable, because before often after a few insers/removals i was getting instant reboots. The only thing is the many "ural_newstate: cannot call usb_rem_task...." messages. P.S.2: Also i seem to get strange output from usbdevs with the new usb stack. I get "I/O Error" message for every possible USB address. I think the problem is that the usb subsystem returns EINVAL where it can return ENXIO to inform the caller that there is no such device. I tried this patch that seems to work ok for me, but i'm not sure if it is completely correct. The patch : --- sys/dev/usb2/_usb.c Wed Jun 21 18:06:23 2006 +++ /usr/src/sys/dev/usb2/_usb.c Mon Jul 17 20:17:11 2006 @@ -858,11 +858,15 @@ struct usb_device_info *di = (void *)data; int addr = di->udi_addr; - if((addr < 1) || - (addr >= USB_MAX_DEVICES) || - (bus->devices[addr] == 0)) + if((addr < 1) || (addr >= USB_MAX_DEVICES)) { error = EINVAL; + goto done; + } + + if(bus->devices[addr] == 0) + { + error = ENXIO; goto done; } or : http://bg.freebsd.org/~ndenev/usb2patch.txt Regards, Niki Denev