Subject: Re: Huawei E220 support?
To: None <current-users@NetBSD.org>
From: Dieter Baron <email@example.com>
Date: 11/29/2007 00:18:14
On Fri, Nov 16, 2007 at 04:04:53PM +0100, Marco Trillo wrote:
> On Nov 16, 2007 3:54 PM, Dieter Baron <firstname.lastname@example.org> wrote:
> > does the Huawei E220 UMTS USB modem work under NetBSD?
> I have that model; but I have not yet started playing with it on
> NetBSD. I have however gathered some info and there are reports that
> it works with the ubsa(4) driver.
> The problem is that this model has two USB devices: a USB mass-storage
> device that contains Windows drivers and the actual serial adapter
> (which should work with ubsa(4)). So if you plug it, it will be
> detected as a umass(4). To make it work with ubsa(4) you just need to
> make ubsa(4) recognize it as a supported model (its identifier is
> already included in 'usbdevs').
Hm, that did not quite work:
ubsa0 at uhub1 port 1
ubsa0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
usbd_set_config_index: illegal index
ubsa0: failed to set configuration: INVAL
The relevant lines from usba.c:
#define UBSA_CONFIG_INDEX 1
/* Move the device into the configured state. */
err = usbd_set_config_index(dev, UBSA_CONFIG_INDEX, 1);
I got the above error both with the device fresh out of the box and
after I used it once on Windows, entering the PIN code. (It worked
under Windows, giving me an internet connection.)