usb4bsd: Fix if_urndis/umodem probing conflict.
authorSascha Wildner <saw@online.de>
Thu, 6 Nov 2014 18:45:41 +0000 (19:45 +0100)
committerSascha Wildner <saw@online.de>
Thu, 6 Nov 2014 18:45:41 +0000 (19:45 +0100)
commit520cf605f1f4c5f91b7147b8aac8cbdfba41af98
tree325d82a01d9736344ed2110c38a48a19aea8184b
parent1f684f66a5ebd9bdcaaefc8f956915eaf00c8c41
usb4bsd: Fix if_urndis/umodem probing conflict.

Previously, if_urndis would not detect certain devices (among them
the HTC One) due to a conflict with certain USB modems from Huawei.

Fix this by making umodem check explicitly for Huawei as the vendor.

As far as I can see, devd(8) would now load both umodem.ko and
if_urndis.ko for these modems but only umodem.ko would attach, so
we should be fine.

However, so far only the urndis(4) part was actually tested.

Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
Tested-by: Robin Hahling <robin.hahling@gw-computing.net>
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2725>
etc/devd/usb.conf
sys/bus/u4b/net/if_urndis.c
sys/bus/u4b/serial/umodem.c