Re: Next try: DWL-122 ifstate=enable failed because wrong firmware

Thomas K <[email protected]> Sat, 17 Jun 2006 18:26:45 +0200
Newsgroups gmane.linux.linux-wlan.user
Message-ID <[email protected]>
Hi Holger,

thanks for you answer.

But ... the problem is a little bit more difficult:

In the beginning, my DWL-122 stick was working well (with driver  
version 0.2.1pre... and starting it by hand. Then I have tried to  
start it by init.d/wlan-script. And this was my mistake. :-) Something  
unspeakable is happen, maybe connected with trying to use prism2dl in  
this script (this was my first impression), maybe not! Who knows?

After this, my stick wasn't working anymore. (not with Linux, if I use  
this stick with Win98 and the shipped driver, it is working)

What's to see: after modprobe... and wlanctl ... ifstate=enable, IF THE STICK
WORKS NORMAL is:

> cat /proc/net/p80211/wlan0/nsd
# prism2_usb version 0.2.3 (Wed May  3 13:15:39 UTC 2006) '$Id:   
prism2sta.c 1751 2005-10-07 21:32:44Z solomon $'

# nic h/w: id=0x8026 1.0.0
# pri f/w: id=0x15 1.1.2
# ap f/w: id=0x?? 1.8.3 <= replace this two ?? with the right value!

But on my stick it shows:

> cat /proc/net/p80211/wlan0/nsd
# prism2_usb version 0.2.3 (Wed May  3 13:15:39 UTC 2006) '$Id:   
prism2sta.c 1751 2005-10-07 21:32:44Z solomon $'

# nic h/w: id=0x8026 1.0.0
# pri f/w: id=0x15 1.1.2
# ap f/w: id=0x00 0.0.0 <= and that's wrong

This means, that primary firmware is available, but station firmware not!

So it's necessary to download this part of firmware before. (in my opinion!)

But, as to see in my logs, there is (it looks so) something wrong with  
the PDA-area.

And, maybe, you can help me in this case (and if you have prism2dl  
available on
your box!):

Try (before you activate the stick normal!):

> wlanctl-ng wlan0 lnxreq_ifstate ifstate=fwload
> cat /proc/net/p80211/wlan0/nsd > output.txt
> echo "------" >> output.txt
> prism2dl -s wlan0 >> output.txt
> wlanctl-ng wlan0 lnxreq_ifstate ifstate=disable

What's happen? Switch the stick to fwload-mode, print out content of nsd-file,
print out your pda from stick and switch back to disable-mode.

Then, send me this file output.txt by mail (better directly to my mail, not to
list) So I can compare, what's wrong on my stick. Maybe this will help.

Thanks and cu,
Thomas