Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2003 03:05:15 +0900
From:      Takanori Watanabe <takawata@init-main.com>
To:        hackers@freebsd.org
Subject:   Netgraph Bluetooth stack usage documentation?
Message-ID:  <200304211805.h3LI5F8s002263@sana.init-main.com>

next in thread | raw e-mail | index | archive | help
Hi,
I bought a pair of USB bluetooth dongle and I managed to 
make it attach as ng_ubt device by patch below.
Then what shall I do next to know whether it works or not?

--- /sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c	Wed Feb 19 14:47:32 2003
+++ ng_ubt.c	Tue Apr 22 02:47:05 2003
@@ -254,6 +254,7 @@
 		{ USB_VENDOR_MSI,      USB_PRODUCT_MSI_BT_DONGLE },
 		{ USB_VENDOR_BROADCOM, USB_PRODUCT_DBW_120M_BT_DONGLE },
 		{ USB_VENDOR_EPOX,     USB_PRODUCT_BT_DG02_DONGLE },
+		{ 0x0f4d, 0x1000},
 		{ 0, 0 }
 	};
 
@@ -396,6 +397,7 @@
 			USBDEVNAME(sc->sc_dev));
 		goto bad;
 	}
+#if 0
 	if (id->bInterfaceClass != UICLASS_WIRELESS_CONTROLLER ||
 	    id->bInterfaceSubClass != UISUBCLASS_RF_CONTROLLER ||
 	    id->bInterfaceProtocol != UIPROTO_BLUETOOTH) {
@@ -406,7 +408,7 @@
 			id->bInterfaceProtocol);
 		goto bad;
 	}
-
+#endif
 	for (i = 0; i < id->bNumEndpoints; i ++) {
 		ed = usbd_interface2endpoint_descriptor(sc->sc_iface0, i);
 		if (ed == NULL) {
@@ -476,6 +478,7 @@
 			USBDEVNAME(sc->sc_dev));
 		goto bad;
 	}
+#if 0
 	if (id->bInterfaceClass != UICLASS_WIRELESS_CONTROLLER ||
 	    id->bInterfaceSubClass != UISUBCLASS_RF_CONTROLLER ||
 	    id->bInterfaceProtocol != UIPROTO_BLUETOOTH) {
@@ -486,7 +489,7 @@
 			id->bInterfaceProtocol);
 		goto bad;
 	}
-
+#endif
 	/*
 	 * Scan all alternate configurations for interface 1
 	 */



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