From ac76cdc670ac78598e94303aca36793dc709b0f5 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Wed, 26 Dec 2012 19:12:31 +0000 Subject: [PATCH] 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 --- sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c index 1f291e862ac3..cb7d94c1f458 100644 --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c @@ -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) }, }; /*