-
Notifications
You must be signed in to change notification settings - Fork 672
Description
Is your feature request related to a problem? Please describe.
In hci_transport_h2_libusb (and possibly other USB transports?), we currently allow filtering by the port path, but not by the hub number. If there are wireless devices plugged into port 1 of both hub 1 and hub 2, our current filtering mechanics cannot disambiguate between the two.
Describe the solution you'd like
We should add a function like hci_transport_usb_set_hub_and_path or hci_transport_usb_set_hub to hci_transport_usb.h. That function would allow filtering by the hub ID as well as the port path.
The user interface is slightly awkward if we go for a function that only sets the hub ID, since that does not provide enough information to identify a device. So we'd probably want to require hci_transport_usb_set_path to be called if a hub ID is specified. I think probably the version that specifies the hub-and-path would be best.
Describe alternatives you've considered
We could do nothing. Ambiguity would remain.
I'm willing to implement this for the libusb transport. I don't have the easy ability to test that it's working for the other USB transports, so to extend the feature to all of the USB transports someone else would have to help out.