Tx timed out! Resetting card (with OpenAP)

earl earl at stanfordalumni.org
Fri Jan 10 04:48:07 EST 2003


Robert Botha wrote:

> > > Have you tried using the external package seperately and disabling the
> > > kernel drivers?
> > > I've had endless hassles with the kernel pcmcia and most of them went away
>
> > > when I switched to the pcmcia-cs package.

As you suggested (thanks!) i replaced kernel pcmcia with the pcmcia modules, and
the behavior is different.  I've only tried this so far in the case of
wds_type=2 and *not* the case of doing the volatile firmware update with
wds_type=4.  (I don't understand whether a card-reset will cause the volatile
firmware update to be lost, causing the card to revert to its permanent firmware
--- anyone know what to expect?)

While ping-flooding the "Tx timed out!" messages still happen, probably just as
frequently as with kernel pcmcia, but the difference is that after most
incidents the card is able to automatically reset successfully and the link
comes back up again for a while, until the next timeout.  Following the
messages:

NETDEV WATCHDOG: wlan0: transmit timed out
wlan0 Tx timed out! Resetting card

i'll see either this:

hostap_cs: wlan0: resetting card

or this:

hostap_cs: wlan0: resetting card
hostap_cs: card initialization timed out
hostap_cs: Initialization failed
hostap_cs: wlan0: resetting card

or occasionally this:

hostap_cs: wlan0: resetting card
wlan0: Interrupt, but SWSUPPORT0 does not match: 0000 != 8A32 - card removed?
hostap_cs: wlan0: resetting card
hostap_cs: card initialization timed out
hostap_cs: Initialization failed
hostap_cs: wlan0: resetting card

following which after a second or so the link comes back up.  However, if i see
this:

hostap_cs: wlan0: resetting card
hostap_cs: card initialization timed out
hostap_cs: Initialization failed
hostap_cs: wlan0: resetting card
hostap_cs: card initialization timed out
hostap_cs: Initialization failed

or this:

hostap_cs: wlan0: resetting card
wlan0: Interrupt, but SWSUPPORT0 does not match: 0000 != 8A32 - card removed?
hostap_cs: card initialization timed out
hostap_cs: Initialization failed
hostap_cs: wlan0: resetting card
hostap_cs: card initialization timed out
hostap_cs: Initialization failed

then the link is permanently dead.  After that point things can't even be
revived with "iwpriv wlan0 reset 1" which merely responds with:

hostap_cs: wlan0: resetting card
hostap_cs: card initialization timed out
hostap_cs: Initialization failed

I guess this is slightly better than with kernel pcmcia but it's still bound to
fail eventually.  Any further suggestions?  Some pcmcia parameters i should be
setting to nondefaults?

Oh yeah --- here are the pcmcia and hostap modules loading.  Note the "ignore=1"
argument is there because there's only one "slot" on this board, and without
that argument the insmod causes a kernel oops crash.

# insmod pcmcia_core
insmod: /lib/modules/2.4.20: No such file or directory
Using /lib/modules/pcmcia_core.o
Linux PCMCIA Card Services 3.2.3
  kernel build: 2.4.20 #1 Thu Jan 9 22:00:50 UTC 2003
  options:  none
# insmod i82365 ignore=1
insmod: /lib/modules/2.4.20: No such file or directory
Using /lib/modules/i82365.o
Intel ISA/PCI/CardBus PCIC probe:
  Intel i82365sl A step ISA-to-PCMCIA at port 0x3e0 ofs 0x00
    host opts [0]: none
    ISA irqs (default) = 3,5,7,9,10,11,12,15 polling interval = 1000 ms
# insmod ds
insmod: /lib/modules/2.<.20: No such file or directory
Using /lib/modules/ds.o
# /etc/init.d/wireless start
Starting wireless: cardmgr[29]: watching 1 sockets
Jan  1 00:12:11 cs: memory probe 0x0d0000-0x0dffff:cardmgr[30]: starting,
version i clean.
s 3.2.3
Jan  1 00:12:11 cardmgr[30]: socket 0: Longshine LCR-8531 11Mbps WLAN PCMCIA
CARD
Jan  1 00:12:11 cardmgr[30]: executing: 'insmod
/lib/modules/preferred/pcmcia/hostap_crypt.o'
Jan  1 00:12:12 cardmgr[30]: + Using
/lib/modules/preferred/pcmcia/hostap_crypt.o
Jan  1 00:12:12 cardmgr[30]: executing: 'insmod
/lib/modules/preferred/pcmcia/hostap.o'
Jan  1 00:12:13 cardmgr[30]: + Using /lib/modules/preferred/pcmcia/hostap.o
Jan  1 00:12:13 cardmgr[30]: executing: 'insmod
/lib/modules/preferred/pcmcia/hostap_cs.o ignore_cis_vcc=1'
hostap_cs: 0.0.0 CVS (Jouni Malinen <jkmaline at cc.hut.fi>)
Jan  1 00:12:13 cs: IO port probe 0x0100-0x04ff:cardmgr[30]: + U clean.
sing /lib/modulecs: IO port probe 0x0800-0x08ff:s/preferred/pcmc clean.
cs: IO port probe 0x0c00-0x0cff:
                                 clean.
hostap_cs: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
hostap_cs: Registered netdevice wlan0
wlan0: NIC: id=0x8002 v1.0.0
wlan0: PRI: id=0x15 v0.3.0
wlan0: STA: id=0x1f v0.7.5
Jan  1 00:12:14 cardmgr[30]: executing: './network start wlan0'
Jan  1 00:12:15 cardmgr[30]: + wlan0     Link encap:Etherneô  HWaddr
00:90:D1:00:C4:88
Jan  1 00:12:15 cardmgr[30]: +           BROADCAST MULTICAST  MTU:1500  Metric:1

Jan  1 00:12:15 cardmgr[30]: +           RX packets:2 errors:0 dropped:0
overruns:0 frame:0
Jan  1 00:12:15 cardmgr[30]: +           TX packets:0 errors:0 dropped:0
overruns:0 carrier:0
Jan  1 00:12:15 cardmgr[30]: +           collisions:0 txqueuelen:100
Jan  1 00:12:15 cardmgr[30]: +           RX bytes:0 (0.0 iB)  TX bytes:0 (0.0
iB)
Jan  1 00:12:15 cardmgr[30]: +           Interrupt:3 Base address:0x100
Jan  1 00:12:15 cardmgr[30]: +


thanks
earl





More information about the HostAP mailing list