From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 25 21:40:00 2012 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC4055B5 for ; Tue, 25 Dec 2012 21:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 887878FC13 for ; Tue, 25 Dec 2012 21:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBPLe0eo005911 for ; Tue, 25 Dec 2012 21:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBPLe0Br005910; Tue, 25 Dec 2012 21:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 25 Dec 2012 21:40:00 GMT Resent-Message-Id: <201212252140.qBPLe0Br005910@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Raphael Kubo da Costa Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 737B35AD for ; Tue, 25 Dec 2012 21:39:03 +0000 (UTC) (envelope-from kubito@gmail.com) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by mx1.freebsd.org (Postfix) with ESMTP id D91FF8FC0A for ; Tue, 25 Dec 2012 21:39:02 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id c1so9709382lah.23 for ; Tue, 25 Dec 2012 13:39:01 -0800 (PST) Received: from localhost (a91-154-115-217.elisa-laajakaista.fi. [91.154.115.217]) by mx.google.com with ESMTPS id f8sm1904458lbg.2.2012.12.25.13.38.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Dec 2012 13:39:00 -0800 (PST) Message-Id: <50da1cf4.e819700a.2eec.55fe@mx.google.com> Date: Tue, 25 Dec 2012 13:39:00 -0800 (PST) From: Raphael Kubo da Costa Sender: Raphael Kubo da Costa To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.114 Subject: kern/174707: [PATCH] ng_ubt: Add vendor IDs for Broadcom USB dongles (BCM20702) Cc: freebsd-bluetooth@FreeBSD.org, freebsd-usb@FreeBSD.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 21:40:00 -0000 >Number: 174707 >Category: kern >Synopsis: [PATCH] ng_ubt: Add vendor IDs for Broadcom USB dongles (BCM20702) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Dec 25 21:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Raphael Kubo da Costa >Release: FreeBSD 9.1-PRERELEASE amd64 >Organization: FreeBSD Project >Environment: System: FreeBSD gibbon 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #66: Tue Dec 25 20:12:02 EET 2012 root@gibbon:/usr/obj/usr/src/sys/GIBBON amd64 >Description: There are a few Broadcom USB-Bluetooth modules out there in the wild that currently fail to be recognized by ng_ubt. They all have the same vendor ID and the product IDs are all quite similar (mine is 0x21e8, for example). Instead of adding several entries, it is possible to match all devices by checking the vendor and interface class/subclass/protocol, which are always the same. >How-To-Repeat: >Fix: Patch (which can be easily MFCed) attached. --- ng_ubt-bcm-entries.diff begins here --- Index: netgraph/bluetooth/drivers/ubt/ng_ubt.c =================================================================== --- netgraph/bluetooth/drivers/ubt/ng_ubt.c (revision 244687) +++ netgraph/bluetooth/drivers/ubt/ng_ubt.c (working copy) @@ -398,6 +398,10 @@ /* AVM USB Bluetooth-Adapter BlueFritz! v2.0 */ { USB_VPI(USB_VENDOR_AVM, 0x3800, 0) }, + + /* Broadcom USB dongles, mostly BCM20702 and BCM20702A0 */ + { USB_VENDOR(USB_VENDOR_BROADCOM), + USB_IF_CSI(UICLASS_VENDOR, 0x01, 0x01) }, }; /* --- ng_ubt-bcm-entries.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: