On Mon, 13 Oct 2003, Greg KH wrote:

> On Sun, Oct 12, 2003 at 11:25:14PM +0200, sergio wrote:
> > Hi,
> > i'm trying to upgrade my (crux1.2) linux installation to kernel 2.6 
> > (test6-7)
> > but i've got problem making my wlan work.
> > I'm using linux-wlan-ng 0.2.1pre13 under kernel 2.4.21 and my dlink usb 
> > nic
> > works without problems; moving to 2.6 i upgraded to module-init-tools, 
> > generated
> > modprobe.conf, configured kernel, but when i plug my nic the kernel says...
> > 
> > hub 1-0:1.0: new USB device on port 2, assigned address 3
> > drivers/usb/core/config.c: invalid interface number (1/1)
> > usb 1-2: can't read configurations, error -22
> > 
> > 
> > I'd really like to use kernel 2.6 full time 'cause it gives huge
> > responsiveness improvements... but i really need the network.
> > Can you give me some hints?
> 
> Hm, Alan, this looks like something might be wrong in
> drivers/usb/config.c due to your recent changes?
> 
> Can you look into it?
> 
> thanks,
> 
> greg k-h

Well, at first glance it really looks like there's something wrong with 
the device, and the error was never detected until my changes were 
applied.  The message

> > drivers/usb/core/config.c: invalid interface number (1/1)

means that the configuration descriptor says there's 1 interface in the 
configuration, so it ought to be interface 0 since interfaces are numbered 
from 0 to (# interfaces - 1).  But this interface is number 1, so it has 
an illegal interface number.

Of course, there's always the possibility that a mistake in the new code 
is confusing the issue.  The best way to learn the true story is for 
Sergio to run lsusb -v under the working 2.4.21 system and post the 
results so we can check them.  It also might help to post a copy of 
/proc/bus/usb/devices -- although the old config.c code was prone to 
strange things like using an interface number it made up rather than the 
one in the descriptor.

Sergio, if you can send us that information it will help a lot.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to