Re: wireless card can't detect after reboot

jdebert <[email protected]> Tue, 30 May 2006 20:40:48 -0700
Newsgroups gmane.linux.linux-wlan.user
Message-ID <[email protected]>
FeRD wrote:

> Just a thought, have you tried doing an ifstate=disable before the
> reboot, to see if that makes any difference?
>
> I'm guessing either the USB bus or device isn't being properly reset
> on reboot, and the WUSB11 is either already in a non-sane state that
> it isn't coming out of, or is being put there by the re-addressing
> being done post-warm-boot... the same sort of thing you may have
> experienced where the WUSB11 detects as simply "USB Device" under
> Wi***ws instead of being recognized as a network interface.

Apparently there is a firmware problem that inhibits a proper warm
reset. The problem seems to cause the 2.6 kernel a bit of a
consternation as well. A cold reset is always recommended with Netgear's
Prism2USB devices. Removing power forces a proper or at least a decent
reset. Sometimes a hub will power down all the ports when the system
reboots, which is adequate as well.

This seems to work with 2.4 & 2.6 kernels:

On cold boot:
#!/bin/bash
wlanctl-ng [Prism2USBdevice] lnxreq_ifstate ifstate=disable
sleep 1
wlanctl-ng [Prism2USBdevice] lnxreq_ifstate ifstate=enable
...
continue other configuration stuff...

On warm boot:

 1. disable interface with wlanctl-ng $prism2usbdevice lnxreq_ifstate
ifstate=disable
 2. unplug prism2usb device
 3. rmmod prism2_usb module
 4. rmmod p80211 module
 5. plug device back in
 6. wait a sec or 2
 7. modprobe prism2_usb (in case hotplug fails to do it) (might need to
wait a sec after)
 8. disable interface with wlanctl-ng $prism2usbdevice lnxreq_ifstate
ifstate=disable
 9. enable interface with wlanctl-ng $prism2usbdevice lnxreq_ifstate
ifstate=enable
10. continue with configuration stuff.

The above was handled here by shell scripts with ugly tk front ends so
there are buttons to click instead of commandline stuff. It could also
be handled fairly well with a sigle expect script w/ tk front end or
expectk script.

Bad antennae and a new wifi router have retired the prism2 devices I have.

==
jd
jdebert_at_garlic_dot_com