loading hostap on boot

Marcos Schonfeld mschonfeld
Wed May 5 14:57:23 PDT 2004


Hi,
I'm trying to get the driver load on boot for my dwl-520revE in my Suse 8.2
linux box.
I edit the /etc/modules.conf and /etc/sysconfig/network/ifcfg-wlan0:

modules.conf:

#load the hostap module
alias wlan0 hostap_pci
#this downloads the firmware pm010102.hex and rf010704.hex files to the card
post-install wlan0 /usr/sbin/hostap_fw_load wlan0

ifcfg-wlan0:

BOOTPROTO='static'
BROADCAST='192.168.1.255'
IPADDR='192.168.1.2'
MTU=''
NETMASK='255.255.255.0'
NETWORK='192.168.1.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
WIRELESS='yes'

But sometimes (I would say the most times) the STA firmware doesn't
download, so the interface wlan0 doesn't start.
I don't know why this happend.
Is any problem shuting down the system whith the hostAP running?
Are these firmware files correct for my card?
This is the dmesg output:

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

When the hostap doesn't start on boot, then I tryed to configure it manually
but it doesn't respond:

# 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.

I had configured the driver with PRISM2_DOWNLOAD_SUPPORT.
What is the wlan PDA?

Thanks for your help
 Marcos





More information about the Hostap mailing list