ioctl[PRISM2_IOCTL_HOSTAPD]: Connection timed out - Could not communicate with the kernel driver.

Alec Waters alec.waters at dataline.co.uk
Thu Jul 27 07:31:08 EDT 2006


Hi all,

I'm trying to get hostap working on the gumstix platform 
(www.gumstix.com). It's running kernel 2.6.17, with the kernel hostap 
driver. I'm using a DLink DCF 660W CF WiFi card.

I think there's something pretty fundamental going wrong here. It's most 
likely the grey stuff between my ears, but on the off-chance it's not, 
here's what I'm seeing.

At boot:

pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
hostap_cs: 0.4.4-kernel (Jouni Malinen <jkmaline at cc.hut.fi>)
hostap_cs: Registered netdevice wifi0
hostap_cs: index 0x01: , irq 49, io 0xc4860000-0xc486003f
wifi0: NIC: id=0x800c v1.0.0
wifi0: PRI: id=0x15 v1.0.7
wifi0: STA: id=0x1f v1.3.6

So far, so good.

Trying to do "hostap" stuff results in:

# hostap_diag wlan0
Host AP driver diagnostics information for 'wlan0'

ioctl[PRISM2_IOCTL_HOSTAPD]: Connection timed out
Could not communicate with the kernel driver.

OK. Let's try to flash the card with newer firmware:

# prism2_srec -p -r wlan0 rf010800.hex
srec summary for rf010800.hex
Included file name: RF010800.hex
Component: 0x001f 1.8.0 (station firmware)

ioctl[PRISM2_IOCTL_HOSTAPD]: Connection timed out
Missing wlan component info
Could not read wlan RIDs

Oh dear. Let's try something else:

# iwconfig wlan0 essid alec
hostap_cs: wlan0: resetting card
hostap_cs: first command failed - assuming card does not have primary 
firmware
hostap_cs: first command failed - assuming card does not have primary 
firmware
wlan0: prism2_enable_aux_port - timeout - reg=0x8010
wlan0: prism2_enable_aux_port - timeout - reg=0x8002
hostap_cs: Initialization failed
Error for wireless request "Set ESSID" (8B1A) :
     SET failed on device wlan0 ; Invalid argument.

Let's try some pcmcia things:

# pccardctl ls
Socket 0 Bridge:        [pxa2xx-pcmcia]         (bus ID: pxa2xx-pcmcia)
Socket 0 Device 0:      [hostap_cs]             (bus ID: 0.0)
# pccardctl info
PRODID_1="D-Link"
PRODID_2="DCF-660W"
PRODID_3=""
PRODID_4=""
MANFID=d601,0005
FUNCID=6
# pccardctl status
Socket 0:
   5.0V 16-bit PC Card
   Subdevice 0 (function 0) bound to driver "hostap_cs"
# pccardctl ident
Socket 0:
   product info: "D-Link", "DCF-660W", "", ""
   manfid: 0xd601, 0x0005
   function: 6 (network)

So far, so good.

# pccardctl reset
cs: pcmcia_socket0: time out after reset.
remove_proc_entry: hostap/wlan0 busy, count=1

This doesn't look good.

# pccardctl suspend
# pccardctl resume
# pccardctl ls
Socket 0 Bridge:        [pxa2xx-pcmcia]         (bus ID: pxa2xx-pcmcia)
cs: pcmcia_socket0: time out after reset.

Nor does this!

And there's loads of this kind of stuff in dmesg:

wlan0: hfa384x_get_rid: CMDCODE_ACCESS failed (res=-110, rid=fc84, len=2)
wlan0: hfa384x_cmd_issue: cmd reg was busy for 5000 usec
wlan0: hfa384x_cmd_issue - timeout - reg=0x8021
wlan0: hfa384x_cmd: entry still in list? (entry=c39a4988, type=0, res=-1)
wlan0: hfa384x_cmd: interrupted; err=-110

...listed for both wlan0 and wifi0.

Am really stuck. Any help or pointers would be most gratefully received!

many thanks,
alec
-- 
Alec Waters CCNP
Dataline Software Ltd
Clarence House, 30-31 North Street, Brighton, BN1 1EB, UK

Tel: +44 (0)1273 324939
Fax: +44 (0)1273 205576
www: http://www.dataline.co.uk
IPv6: http://www.ipv6.dataline.co.uk





More information about the HostAP mailing list