ugensa(4): Fix handling of Huawei modems.
authorSascha Wildner <saw@online.de>
Sun, 31 May 2009 10:07:36 +0000 (12:07 +0200)
committerSascha Wildner <saw@online.de>
Sun, 31 May 2009 10:08:39 +0000 (12:08 +0200)
commit7ffe1f6754372419182d1b1ab761af18a6d28090
treeb36175dd11196d7914a9351756de05593e4d875d
parent3970d45b49c85d68b295f43efa23d9ec0bb5bcde
ugensa(4): Fix handling of Huawei modems.

Basically move the calling of the reattach code to get the Huawei
modem out of mass storage mode into the _match() routine and
simplify the logic behind when calling it and when not.

Now it is called for any Huawei modem if it has only one interface,
probably only a mass storage interface. Normally this mass-storage
interface is used under windows as it carries the windows-drivers
for the device. As we don't need it, we just tell the box that we
want the modem interface and not mass storage.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1324>
Submitted-by: Alex Hornung <ahornung@gmail.com>
Tested-by: Brendan Kosowski <bmk@bmk.com.au>
Approved-by: hasso
sys/dev/usbmisc/ugensa/ugensa.c