RID len mismatch/timeouts

Gerald Britton gbritton
Sun Feb 16 13:39:53 PST 2003


This seems to be a common problem with the driver over the past few months.
I'll run through the Red Hat ifup scripts which issue a rapid sequence of
iwconfig commands to set operating mode, essid, wep keys, etc. and then
fire of dhclient to get an ip address.  I've seen this problem mostly with
my minipci card (1.4.9), but I also occasionally see it with my pcmcia
card(1.3.5):

prism2: wlan0: operating mode changed 3 -> 2
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=00:20:e0:89:26:39
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=44:44:44:44:44:44
wlan0: LinkStatus=2 (Disconnected)
wlan0: hfa384x_get_rid - RID len mismatch: rid=0xfd42, len=40 (expected 6)
wlan0: could not read CURRENTBSSID after LinkStatus event
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=44:44:44:44:44:44
wlan0: LinkStatus=1 (Connected)
wlan0: LinkStatus: BSSID=00:04:5a:dd:45:b7
wlan0: prism2_open

and an ifdown/ifup:

wlan0: prism2_close
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=44:44:44:44:44:44
wlan0: LinkStatus=2 (Disconnected)
wlan0: hfa384x_get_rid - RID len mismatch: rid=0xfd42, len=40 (expected 6)
wlan0: could not read CURRENTBSSID after LinkStatus event
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=44:44:44:44:44:44
wlan0: hfa384x_setup_bap - timeout after
wlan0: hfa384x_get_rid (rid=fd42, len=6) - failed - res=-110
hostap_pci: wlan0: resetting card
prism2_hw_init()
prism2_hw_config: initialized in 18096 iterations
wlan0: prism2_open
wlan0: LinkStatus=1 (Connected)
wlan0: LinkStatus: BSSID=00:04:5a:dd:45:b7

....

I'm not sure when this behavior started, but at a guess I'd say around the
2002-09-12 release.  It's been getting slowly worse though I think.
Usually a card reset will take care of it, but occasionally it spirals out
of control resulting in something like this:

wlan0: prism2_close
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=44:44:44:44:44:44
wlan0: LinkStatus=2 (Disconnected)
wlan0: hfa384x_get_rid - RID len mismatch: rid=0xfd42, len=34 (expected 6)
wlan0: could not read CURRENTBSSID after LinkStatus event
wlan0: LinkStatus=2 (Disconnected)
wlan0: LinkStatus: BSSID=44:44:44:44:44:44
wlan0: hfa384x_cmd: entry still in list? (entry=df4408e4, type=0, res=0)
wlan0: hfa384x_cmd: command was not completed (res=0, entry=df4408e4,
type=0, cmd=0x0002, param0=0x0000)
wlan0: reset port failed to disable port
wlan0: hfa384x_cmd: entry still in list? (entry=df44092c, type=0, res=0)
wlan0: hfa384x_cmd: command was not completed (res=0, entry=df44092c,
type=0, cmd=0x0021, param0=0xfd43)
wlan0: hfa384x_get_rid: CMDCODE_ACCESS failed (res=-110, rid=fd43, len=6)
wlan0: hfa384x_cmd: entry still in list? (entry=df44014c, type=0, res=0)
wlan0: hfa384x_cmd: command was not completed (res=0, entry=df44014c,
type=0, cmd=0x0021, param0=0xfc28)
wlan0: hfa384x_get_rid: CMDCODE_ACCESS failed (res=-110, rid=fc28, len=2)
Could not read current WEP flags.
wlan0: encryption setup failed
set_encryption or reset_port failed
 . . .
wlan0: hfa384x_cmd_issue: cmd reg was busy for 1000 usec
wlan0: hfa384x_cmd_issue - timeout - reg=0x8021
wlan0: hfa384x_cmd: entry still in list? (entry=df44092c, type=0, res=-1)
wlan0: hfa384x_cmd: interrupted; err=-110
wlan0: hfa384x_get_rid: CMDCODE_ACCESS failed (res=-110, rid=fd43, len=6)
wlan0: hfa384x_setup_bap - offset error (0,379,0)
wlan0: prism2_tx - to BAP0 failed
wlan0: scheduled card reset
hostap_pci: wlan0: resetting card
prism2_hw_init()
prism2_hw_config: initialized in 18089 iterations
wlan0: LinkStatus=1 (Connected)
wlan0: LinkStatus: BSSID=00:04:5a:dd:45:b7
wlan0: TXEXC - status=0x0008 ([FormErr]) tx_control=000c
   retry_count=0 tx_rate=0 fc=0x0108 (Data::0 ToDS)
   A1=00:04:5a:dd:45:b7 A2=00:20:e0:89:26:39 A3=ff:ff:ff:ff:ff:ff
A4=00:00:00:00:00:00

unloading and reloading the kernel module is the only way to fix the card
when it gets into this state.

These were all run with the CVS current as of today and wlan0 in this case
is an ActionTec minipci card in a Thinkpad T23:
NICID: id=0x8013 v1.0.0 (PRISM II (2.5) Mini-PCI (SST parallel flash))
PRIID: id=0x0015 v1.1.0
STAID: id=0x001f v1.4.9 (station firmware)

				-- Gerald





More information about the Hostap mailing list