Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 19:12:31 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244714 - head/sys/netgraph/bluetooth/drivers/ubt
Message-ID:  <201212261912.qBQJCVtc024398@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco (ports committer)
Date: Wed Dec 26 19:12:31 2012
New Revision: 244714
URL: http://svnweb.freebsd.org/changeset/base/244714

Log:
  Use the correct USB interface macros instead of USB_IF_CSI.
  
  As pointed out by hselasky@, USB_IF_CSI is the wrong macro here since we want
  to declare the device's interface class, subclass and protocol, not class,
  subclass and driver info.
  
  Follow-up to r244704.
  
  PR:		kern/174707
  Approved by:	glebius
  MFC after:	1 week

Modified:
  head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c

Modified: head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
==============================================================================
--- head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Wed Dec 26 18:51:37 2012	(r244713)
+++ head/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Wed Dec 26 19:12:31 2012	(r244714)
@@ -401,7 +401,9 @@ static const STRUCT_USB_HOST_ID ubt_devs
 
 	/* Broadcom USB dongles, mostly BCM20702 and BCM20702A0 */
 	{ USB_VENDOR(USB_VENDOR_BROADCOM),
-	  USB_IF_CSI(UICLASS_VENDOR, 0x01, 0x01) },
+	  USB_IFACE_CLASS(UICLASS_VENDOR),
+	  USB_IFACE_SUBCLASS(UDSUBCLASS_RF),
+	  USB_IFACE_PROTOCOL(UDPROTO_BLUETOOTH) },
 };
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212261912.qBQJCVtc024398>