hostap-driver 0.4.7 and Prism2 PCMCIA initialization failure: "wifi0: hfa384x_cmd: entry still in list?"

Aleksander Adamowski aleksander.adamowski.hostap at altkom.pl
Sun Feb 12 19:41:33 EST 2006


Hi!

I've bought a PCMCIA card based on Prism 2.5 (photo here: 
http://photos.allegro.pl/photos/oryginal/84/8467/846766/84676648)

The card exhibits a similar problem to others mentioned on this list in 
the past:

"(Argh!) 2.6.11.1 w/ 0.3.7 = wifi0: hfa384x_cmd: entry still in list?":
http://lists.shmoo.com/pipermail/hostap/2005-March/009708.html

"Netgear problems continue":
http://lists.shmoo.com/pipermail/hostap/2005-July/011014.html

Did anyone find the solution to this problem?

My card came with the following firmware:

NIC: id=0x800c v1.0.0
PRI: id=0x15 v1.0.7
STA: id=0x1f v1.3.6

I'm using it with Mandriva 2005. Mandriva comes with hostap-drivers v. 
0.3.7 and hostap-utils 0.3.7, but I've upgraded both of them to the 
latest 0.4.7 version.

With the original firmware, the card had a initialization problem during 
bootup:

Feb 12 16:52:48 laptop kernel: Yenta: CardBus bridge found at 
0000:00:02.0 [1014:01d6]
Feb 12 16:52:48 laptop kernel: Yenta: adjusting diagnostic: 40 -> 60
Feb 12 16:52:48 laptop kernel: Yenta: Using CSCINT to route CSC 
interrupts to PCI
Feb 12 16:52:48 laptop kernel: Yenta: Routing CardBus interrupts to PCI
Feb 12 16:52:48 laptop kernel: Yenta TI: socket 0000:00:02.0, mfunc 
0x01c21000, devctl 0x66
Feb 12 16:52:48 laptop kernel: Yenta: ISA IRQ mask 0x06f8, PCI irq 11
Feb 12 16:52:48 laptop kernel: Socket status: 30000010
Feb 12 16:52:48 laptop kernel: cs: IO port probe 0xc00-0xcff: clean.
Feb 12 16:52:48 laptop kernel: cs: IO port probe 0x100-0x4ff: excluding 
0x3b8-0x3df 0x4d0-0x4d7
Feb 12 16:52:48 laptop kernel: cs: IO port probe 0xa00-0xaff: clean.
Feb 12 16:52:48 laptop kernel: cs: memory probe 0xa0000000-0xa0ffffff: 
clean.
Feb 12 16:52:48 laptop kernel: hostap_crypt: registered algorithm 'NULL'
Feb 12 16:52:48 laptop kernel: hostap_cs: 0.4.7 - 2005-11-20 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Feb 12 16:52:48 laptop kernel: hostap_cs: setting Vcc=33 (constant)
Feb 12 16:52:48 laptop kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Feb 12 16:52:48 laptop kernel: hostap_cs: setting Vcc=50 (from config)
Feb 12 16:52:48 laptop kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Feb 12 16:52:48 laptop kernel: IO window settings: cfg->io.nwin=1 
dflt.io.nwin=1
Feb 12 16:52:48 laptop kernel: io->flags = 0x0046, io.base=0x0000, len=64
Feb 12 16:52:48 laptop kernel: hostap_cs: Registered netdevice wifi0
Feb 12 16:52:48 laptop kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 
0x0100-0x013f
Feb 12 16:52:48 laptop kernel: prism2_hw_init: initialized in 197 ms
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cef73f20, type=0, res=0)
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cef73f20, type=0, cmd=0x0001, param0=0x0000, 
EVSTAT=8000 INTEN=0010)
Feb 12 16:52:48 laptop kernel: wifi0: MAC port 0 enabling failed
Feb 12 16:52:48 laptop kernel: wifi0: could not enable MAC port
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cef73ee0, type=0, res=0)
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cef73ee0, type=0, cmd=0x0021, param0=0xfd0b, 
EVSTAT=8000 INTEN=0010)
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_get_rid: CMDCODE_ACCESS 
failed (res=-110, rid=fd0b, len=8)
Feb 12 16:52:48 laptop kernel: Could not get RID for component NIC
Feb 12 16:52:48 laptop kernel: hostap_cs: Initialization failed
Feb 12 16:52:48 laptop kernel: prism2_config() failed
Feb 12 16:52:48 laptop kernel: Floppy drive(s): fd0 is 1.44M
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cef73f20, type=0, res=0)
Feb 12 16:52:48 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cef73f20, type=0, cmd=0x0002, param0=0x0000, 
EVSTAT=8000 INTEN=0000)
Feb 12 16:52:48 laptop kernel: hostap_cs: Shutdown failed

But when I've been reinserting it after bootup, it was initializing fine 
every time:

Feb 12 17:01:59 laptop cardmgr[4387]: socket 0: Zcomax XI-325H 200mW
Feb 12 17:01:59 laptop kernel: hostap_crypt: registered algorithm 'NULL'
Feb 12 17:01:59 laptop kernel: hostap_cs: 0.4.7 - 2005-11-20 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Feb 12 17:01:59 laptop kernel: hostap_cs: setting Vcc=33 (constant)
Feb 12 17:01:59 laptop kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Feb 12 17:01:59 laptop kernel: hostap_cs: setting Vcc=50 (from config)
Feb 12 17:01:59 laptop kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Feb 12 17:01:59 laptop kernel: IO window settings: cfg->io.nwin=1 
dflt.io.nwin=1
Feb 12 17:01:59 laptop kernel: io->flags = 0x0046, io.base=0x0000, len=64
Feb 12 17:01:59 laptop kernel: hostap_cs: Registered netdevice wifi0
Feb 12 17:01:59 laptop kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 
0x0100-0x013f
Feb 12 17:01:59 laptop net.agent[8236]: how do I bring interfaces up on 
this distro?
Feb 12 17:01:59 laptop net.agent[8236]: add event not handled
Feb 12 17:01:59 laptop kernel: prism2_hw_init: initialized in 196 ms
Feb 12 17:01:59 laptop kernel: wifi0: NIC: id=0x800c v1.0.0
Feb 12 17:02:00 laptop kernel: wifi0: PRI: id=0x15 v1.0.7
Feb 12 17:02:00 laptop kernel: wifi0: STA: id=0x1f v1.3.6
Feb 12 17:02:00 laptop kernel: wifi0: defaulting to host-based 
encryption as a workaround for firmware bug in Host AP mode WEP
Feb 12 17:02:00 laptop kernel: wifi0: defaulting to bogus WDS frame as a 
workaround for firmware bug in Host AP mode WDS
Feb 12 17:02:00 laptop kernel: wifi0: registered netdevice wlan0
Feb 12 17:02:00 laptop net.agent[8249]: how do I bring interfaces up on 
this distro?
Feb 12 17:02:00 laptop net.agent[8249]: add event not handled


However, the station firmware on the card (1.3.6) wasn't enough to use 
WPA with wpa_supplicant, so I've decided to upgrade the card's firmware.

So I took hostap-driver-0.4.7 (manually compiled with 
PRISM2_NON_VOLATILE_DOWNLOAD defined) and hostap-utils-0.4.7, then 
downloaded Prism firmware v1.1.1 and station firmware v1.8.4.

After verifying with "hostap_fw_load -v" that those firmware versions 
match my card, I've flashed the card with them.
The operation has succeeded:

Feb 12 17:01:59 laptop cardmgr[4387]: socket 0: Zcomax XI-325H 200mW
Feb 12 17:01:59 laptop kernel: hostap_crypt: registered algorithm 'NULL'
Feb 12 17:01:59 laptop kernel: hostap_cs: 0.4.7 - 2005-11-20 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Feb 12 17:01:59 laptop kernel: hostap_cs: setting Vcc=33 (constant)
Feb 12 17:01:59 laptop kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Feb 12 17:01:59 laptop kernel: hostap_cs: setting Vcc=50 (from config)
Feb 12 17:01:59 laptop kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Feb 12 17:01:59 laptop kernel: IO window settings: cfg->io.nwin=1 
dflt.io.nwin=1
Feb 12 17:01:59 laptop kernel: io->flags = 0x0046, io.base=0x0000, len=64
Feb 12 17:01:59 laptop kernel: hostap_cs: Registered netdevice wifi0
Feb 12 17:01:59 laptop kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 
0x0100-0x013f
Feb 12 17:01:59 laptop net.agent[8236]: how do I bring interfaces up on 
this distro?
Feb 12 17:01:59 laptop net.agent[8236]: add event not handled
Feb 12 17:01:59 laptop kernel: prism2_hw_init: initialized in 196 ms
Feb 12 17:01:59 laptop kernel: wifi0: NIC: id=0x800c v1.0.0
Feb 12 17:02:00 laptop kernel: wifi0: PRI: id=0x15 v1.0.7
Feb 12 17:02:00 laptop kernel: wifi0: STA: id=0x1f v1.3.6
Feb 12 17:02:00 laptop kernel: wifi0: defaulting to host-based 
encryption as a workaround for firmware bug in Host AP mode WEP
Feb 12 17:02:00 laptop kernel: wifi0: defaulting to bogus WDS frame as a 
workaround for firmware bug in Host AP mode WDS
Feb 12 17:02:00 laptop kernel: wifi0: registered netdevice wlan0
Feb 12 17:02:00 laptop net.agent[8249]: how do I bring interfaces up on 
this distro?
Feb 12 17:02:00 laptop net.agent[8249]: add event not handled
Feb 12 17:02:10 laptop kernel: wlan0: no IPv6 routers present
Feb 12 17:02:18 laptop kernel: prism2_download: dl_cmd=3 
start_addr=0x00000000 num_areas=5
Feb 12 17:02:19 laptop kernel: Download buffer: 4096 bytes at 0x0060:0x0000
Feb 12 17:02:24 laptop kernel: prism2_hw_init: initialized in 454 ms
Feb 12 17:02:24 laptop kernel: wifi0: starting flash download
Feb 12 17:02:25 laptop kernel: prism2_hw_init: initialized in 196 ms
Feb 12 17:02:25 laptop kernel: wifi0: NIC: id=0x800c v1.0.0
Feb 12 17:02:25 laptop kernel: wifi0: PRI: id=0x15 v1.1.1
Feb 12 17:02:25 laptop kernel: wifi0: STA: id=0x1f v1.8.4
Feb 12 17:02:25 laptop kernel: wifi0: Card initialized successfully 
after flash download

After rebooting the system, however the card ceased to initialize both 
on boot and later.

Currently, with new firmware, hostap outputs the following during boot:

Feb 12 18:22:34 laptop kernel: Yenta: CardBus bridge found at 
0000:00:02.0 [1014:01d6]
Feb 12 18:22:34 laptop partmon: ^[[65G[^[[1;32m
Feb 12 18:22:34 laptop kernel: Yenta: adjusting diagnostic: 40 -> 60
Feb 12 18:22:34 laptop kernel: Yenta: Using CSCINT to route CSC 
interrupts to PCI
Feb 12 18:22:34 laptop kernel: Yenta: Routing CardBus interrupts to PCI
Feb 12 18:22:34 laptop kernel: Yenta TI: socket 0000:00:02.0, mfunc 
0x01c21000, devctl 0x66
Feb 12 18:22:34 laptop kernel: Yenta: ISA IRQ mask 0x06f8, PCI irq 11
Feb 12 18:22:34 laptop kernel: Socket status: 30000010
Feb 12 18:22:34 laptop kernel: cs: IO port probe 0xc00-0xcff: clean.
Feb 12 18:22:34 laptop kernel: cs: IO port probe 0x100-0x4ff: excluding 
0x3b8-0x3df 0x4d0-0x4d7
Feb 12 18:22:34 laptop kernel: cs: IO port probe 0xa00-0xaff: clean.
Feb 12 18:22:34 laptop kernel: cs: memory probe 0xa0000000-0xa0ffffff: 
clean.
Feb 12 18:22:34 laptop kernel: hostap_crypt: registered algorithm 'NULL'
Feb 12 18:22:34 laptop kernel: hostap_cs: 0.4.7 - 2005-11-20 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Feb 12 18:22:34 laptop kernel: hostap_cs: setting Vcc=33 (constant)
Feb 12 18:22:34 laptop kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Feb 12 18:22:34 laptop kernel: hostap_cs: setting Vcc=50 (from config)
Feb 12 18:22:34 laptop kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Feb 12 18:22:34 laptop kernel: IO window settings: cfg->io.nwin=1 
dflt.io.nwin=1
Feb 12 18:22:34 laptop kernel: io->flags = 0x0046, io.base=0x0000, len=64
Feb 12 18:22:34 laptop kernel: hostap_cs: Registered netdevice wifi0
Feb 12 18:22:34 laptop kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 
0x0100-0x013f
Feb 12 18:22:34 laptop kernel: prism2_hw_init: initialized in 196 ms
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cec0cf20, type=0, res=0)
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cec0cf20, type=0, cmd=0x0001, param0=0x0000, 
EVSTAT=8000 INTEN=0010)
Feb 12 18:22:34 laptop kernel: wifi0: MAC port 0 enabling failed
Feb 12 18:22:34 laptop kernel: wifi0: could not enable MAC port
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cec0cee0, type=0, res=0)
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cec0cee0, type=0, cmd=0x0021, param0=0xfd0b, 
EVSTAT=8000 INTEN=0010)
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_get_rid: CMDCODE_ACCESS 
failed (res=-110, rid=fd0b, len=8)
Feb 12 18:22:34 laptop kernel: Could not get RID for component NIC
Feb 12 18:22:34 laptop kernel: hostap_cs: Initialization failed
Feb 12 18:22:34 laptop kernel: prism2_config() failed
Feb 12 18:22:34 laptop kernel: Floppy drive(s): fd0 is 1.44M
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cec0cf20, type=0, res=0)
Feb 12 18:22:34 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cec0cf20, type=0, cmd=0x0002, param0=0x0000, 
EVSTAT=8000 INTEN=0000)
Feb 12 18:22:34 laptop kernel: hostap_cs: Shutdown failed

And if I insert the card later, hostap outputs:

Feb 12 18:23:45 laptop kernel: hostap_cs: CS_EVENT_CARD_REMOVAL
Feb 12 18:23:45 laptop kernel: wifi0: card already removed or not 
configured during shutdown
Feb 12 18:23:45 laptop kernel: wifi0: Interrupt, but dev not OK
Feb 12 18:23:45 laptop cardmgr[4391]: stop cmd exited with status 1
Feb 12 18:23:45 laptop net.agent[7585]: remove event not handled
Feb 12 18:23:45 laptop kernel: hostap_cs: Driver unloaded
Feb 12 18:23:45 laptop kernel: hostap_crypt: unregistered algorithm 
'NULL' (deinit)
Feb 12 18:23:55 laptop cardmgr[4391]: socket 0: Zcomax XI-325H 200mW
Feb 12 18:23:55 laptop kernel: hostap_crypt: registered algorithm 'NULL'
Feb 12 18:23:55 laptop kernel: hostap_cs: 0.4.7 - 2005-11-20 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Feb 12 18:23:55 laptop kernel: hostap_cs: setting Vcc=33 (constant)
Feb 12 18:23:55 laptop kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Feb 12 18:23:55 laptop kernel: hostap_cs: setting Vcc=50 (from config)
Feb 12 18:23:55 laptop kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Feb 12 18:23:55 laptop kernel: IO window settings: cfg->io.nwin=1 
dflt.io.nwin=1
Feb 12 18:23:55 laptop kernel: io->flags = 0x0046, io.base=0x0000, len=64
Feb 12 18:23:55 laptop kernel: hostap_cs: Registered netdevice wifi0
Feb 12 18:23:55 laptop kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 
0x0100-0x013f
Feb 12 18:23:55 laptop kernel: prism2_hw_init: initialized in 196 ms
Feb 12 18:23:57 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cd38f520, type=0, res=0)
Feb 12 18:23:57 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cd38f520, type=0, cmd=0x0001, param0=0x0000, 
EVSTAT=8000 INTEN=0010)
Feb 12 18:23:57 laptop kernel: wifi0: MAC port 0 enabling failed
Feb 12 18:23:57 laptop kernel: wifi0: could not enable MAC port
Feb 12 18:23:57 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cd38f4e0, type=0, res=0)
Feb 12 18:23:57 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cd38f4e0, type=0, cmd=0x0021, param0=0xfd0b, 
EVSTAT=8000 INTEN=0010)
Feb 12 18:23:57 laptop kernel: wifi0: hfa384x_get_rid: CMDCODE_ACCESS 
failed (res=-110, rid=fd0b, len=8)
Feb 12 18:23:57 laptop kernel: Could not get RID for component NIC
Feb 12 18:23:57 laptop kernel: hostap_cs: Initialization failed
Feb 12 18:23:57 laptop kernel: prism2_config() failed
Feb 12 18:23:59 laptop net.agent[7640]: how do I bring interfaces up on 
this distro?
Feb 12 18:23:59 laptop net.agent[7640]: add event not handled
Feb 12 18:23:59 laptop kernel: wifi0: hfa384x_cmd: entry still in list? 
(entry=cd38f520, type=0, res=0)
Feb 12 18:23:59 laptop kernel: wifi0: hfa384x_cmd: command was not 
completed (res=0, entry=cd38f520, type=0, cmd=0x0002, param0=0x0000, 
EVSTAT=8000 INTEN=0000)
Feb 12 18:23:59 laptop kernel: hostap_cs: Shutdown failed


It outputs the same errors if I boot without the card inserted, and 
insert it later.


However, I were able to initialize the card once when inserting it right 
after PCMCIA cardmgr restart:

Feb 12 22:52:32 laptop cardmgr[8223]: socket 0: Zcomax XI-325H 200mW
Feb 12 22:52:32 laptop kernel: hostap_crypt: registered algorithm 'NULL'
Feb 12 22:52:32 laptop kernel: hostap_cs: 0.2.6 - 2004-12-25 (Jouni 
Malinen <jkmaline at cc.hut.fi>)
Feb 12 22:52:32 laptop kernel: hostap_cs: setting Vcc=33 (constant)
Feb 12 22:52:32 laptop kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Feb 12 22:52:32 laptop kernel: hostap_cs: setting Vcc=50 (from config)
Feb 12 22:52:32 laptop kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Feb 12 22:52:32 laptop kernel: IO window settings: cfg->io.nwin=1 
dflt.io.nwin=1
Feb 12 22:52:32 laptop kernel: io->flags = 0x0046, io.base=0x0000, len=64
Feb 12 22:52:32 laptop kernel: hostap_cs: Registered netdevice wifi0
Feb 12 22:52:32 laptop kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 
0x0100-0x013f
Feb 12 22:52:33 laptop kernel: prism2_hw_init: initialized in 272 ms
Feb 12 22:52:33 laptop kernel: wifi0: NIC: id=0x800c v1.0.0
Feb 12 22:52:33 laptop kernel: wifi0: PRI: id=0x15 v1.1.1
Feb 12 22:52:33 laptop kernel: wifi0: STA: id=0x1f v1.8.4
Feb 12 22:52:33 laptop net.agent[8251]: how do I bring interfaces up on 
this distro?
Feb 12 22:52:33 laptop net.agent[8251]: add event not handled
Feb 12 22:52:33 laptop kernel: wifi0: registered netdevice wlan0
Feb 12 22:52:33 laptop net.agent[8270]: how do I bring interfaces up on 
this distro?
Feb 12 22:52:33 laptop net.agent[8270]: add event not handled


I weren't able to reproduce this successful initialization anymore, 
although I've tried restarting PCMCIA cardmgr, reboot the laptop with 
and without the card plugged in etc.

The card initializes fine if I use the orinoco_cs driver, but I'd like 
to use WPA/WPA2 with it, so I need to get the hostap driver working.
I can do some debugging if any of hostap developers instructs what's needed.

-- 
Best Regards,
    Aleksander Adamowski
        GG#: 274614
        ICQ UIN: 19780575 
	http://olo.ab.altkom.pl




More information about the HostAP mailing list