loading hostap on boot

Marcos Schonfeld mschonfeld at ubp.edu.ar
Thu May 6 20:41:09 EDT 2004


Ok,  I have the next lines inthe modules.conf:
alias wlan0 hostap_pci
post-install wlan0 hostap_fw_load wlan0   # to load the firmware

then I have a file /etc/sysconfig/network/ifcfg-wlan0, so that network
service puts up the wlan0 interface

When I shutdown the PC, the network service puts down the wlan0 interface,
and I don't know if the hostap_pci module gets removed. Perhaps this is the
cause of the problem.
Could you help me?
Thanks.
   Marcos

----- Original Message ----- 
From: <glenngreenfield at adelphia.net>
To: "Marcos Schonfeld" <mschonfeld at ubp.edu.ar>
Sent: Thursday, May 06, 2004 4:28 PM
Subject: Re: loading hostap on boot


> If you don't rmmod the hostap drivers BEFORE rebooting the card gets
hosed.  You can remove the card & reinsert it to restore functionality.  I'm
not at my box that uses the dwl-520e so I don't remember the exact order
that you should rmmod but that has been my experience.
> >
> > From: "Marcos Schonfeld" <mschonfeld at ubp.edu.ar>
> > Date: 2004/05/06 Thu PM 12:28:47 MDT
> > To: "hostap mailing list" <hostap at shmoo.com>
> > Subject: loading hostap on boot
> >
> > Hi, I'm having problems with the dwl520E.
> > I load the module hostap_pci, download the firmware files, and then
ifconfig
> > wlan0 up.
> > Some times I can't download the firmware, so I reboot the PC and some
times
> > all wokrs fine, but when I halt the PC, in the next boot the problems
> > appears again.
> > In some cases I have to boot WinXP (yes, I have a winxp partition) to
get
> > the card works fine, so then I boot linux and all works fine again.
> > I imagine you are laugh at my case, but it's true. I suppose that the
winxp
> > driver reinitializes the card so then I can run hostap on linux.
> >
> > Has anybody get into these sort of truble?
> > Has anybody a solution for my case?
> >
> > dmesg:
> > hostap_crypt: registered algorithm 'NULL'
> > hostap_pci: 0.2.0 - 2004-02-15 (Jouni Malinen <jkmaline at cc.hut.fi>)
> > PCI: Found IRQ 11 for device 00:0d.0
> > PCI: Sharing IRQ 11 with 01:00.0
> > hostap_pci: Registered netdevice wifi0
> > wifi0: Original COR value: 0x0
> > wifi0: COR sreset timeout
> > wifi0: __hfa384x_cmd_no_wait(6) - timeout - reg=0x8c80
> > hostap_pci: first command failed - assuming card does not have primary
> > firmware
> > hostap_pci: assuming no Primary image in flash - card initialization not
> > completed
> > wifi0: test Genesis mode with HCR 0x1f
> > wifi0: Original COR value: 0x80
> > wifi0: COR sreset timeout
> > Readback test failed, HCR 0x1f write 00 e1 a1 ff read 00 ce a1 ce
> > wifi0: test Genesis mode with HCR 0x0f
> > wifi0: Original COR value: 0xa1
> > wifi0: COR sreset timeout
> > Readback test succeeded, HCR 0x0f
> > wifi0: Intersil Prism2.5 PCI: mem=0xf3000000, irq=11
> > wifi0: registered netdevice wlan0
> > prism2_download: dl_cmd=4 start_addr=0x003f0000 num_areas=3
> > wifi0: test Genesis mode with HCR 0x0f
> > wifi0: Original COR value: 0x0
> > wifi0: COR sreset timeout
> > Readback test succeeded, HCR 0x0f
> > prism2_hw_init: initialized in 0 ms
> > wifi0: valid PDA not found
> > wifi0: NIC: id=0x8000 v0.0.1
> > wifi0: PRI: id=0x15 v1.1.2
> > Could not get RID for component STA
> > wifi0: Failed to read STA f/w version - only Primary f/w present
> > wlan0: CMD=0x0001 => res=0x7f, resp0=0x0001
> > wlan0: MAC port 0 enabling failed
> > wlan0: could not enable MAC port
> > wifi0: Original COR value: 0x1
> >
> > # hostap_fw_load wlan0
> > Downloading secondary (station) firmware /etc/firmware/rf010704.hex
> > srec summary for rf010704.hex
> > Included file name: RF010704.HEX
> > Component: 0x001f 1.7.4 (station firmware)
> >
> > ioctl[PRISM2_IOCTL_HOSTAPD]: No data available
> > STAID not available (maybe running PRI-only)
> > ioctl[PRISM2_IOCTL_HOSTAPD]: No data available
> > ioctl[PRISM2_IOCTL_HOSTAPD]: No data available
> > Could not read wlan PDA. This requires PRISM2_DOWNLOAD_SUPPORT
definition in
> > driver/module/hostap_config.h.
> >
> > _______________________________________________
> > HostAP mailing list
> > HostAP at shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
> >
>
> glenn greenfield
>




More information about the HostAP mailing list