Netgraph Bluetooth stack usage documentation?
Takanori Watanabe
takawata at init-main.com
Mon Apr 21 11:05:21 PDT 2003
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
*/
More information about the freebsd-hackers
mailing list