On Wed, Jan 4, 2017 at 1:47 PM, Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote: > You know the device type and vendor/product id before you authorize it, > you should be able to do this type of detection otherwise it seems > pretty pointless :)
You know the vendor and product ID, which doesn't tell you whether one of the endpoints is a network device or a keyboard. You need to know that.