diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c --- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c +++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c @@ -152,6 +152,13 @@ static ng_rcvmsg_t ng_ubt_rcvmsg; static ng_rcvdata_t ng_ubt_rcvdata; +static int ng_ubt_isoc_trans = 1; + +SYSCTL_NODE(_hw, OID_AUTO, ubt, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, "UBT"); + +SYSCTL_INT(_hw_ubt, OID_AUTO, usb_isoc_enable, CTLFLAG_RDTUN|CTLFLAG_MPSAFE, + &ng_ubt_isoc_trans, 1, "enable isochronous transfer"); + /* Queue length */ static const struct ng_parse_struct_field ng_ubt_node_qlen_type_fields[] = { @@ -742,8 +749,9 @@ } /* Setup transfers for both interfaces */ - if (usbd_transfer_setup(uaa->device, iface_index, sc->sc_xfer, - ubt_config, UBT_N_TRANSFER, sc, &sc->sc_if_mtx)) { + if (usbd_transfer_setup(uaa->device, iface_index, sc->sc_xfer, ubt_config, + (ng_ubt_isoc_trans) ? UBT_N_TRANSFER : UBT_N_TRANSFER/2, + sc, &sc->sc_if_mtx)) { UBT_ALERT(sc, "could not allocate transfers\n"); goto detach; }