Subject: kern/30549: wi(4) fails to initialise card
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 06/18/2005 15:06:00
>Number: 30549
>Category: kern
>Synopsis: wi(4) fails to initialise card on netbsd-3
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 18 15:06:00 +0000 2005
>Originator: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release: NetBSD 3.0_BETA
>Organization:
Falling Raindrops
>Environment:
System: NetBSD pizza.causeuse.org 3.0_BETA NetBSD 3.0_BETA (PIZZA) #1: Wed Jun 8 23:27:04 CEST 2005 hauke@pizza.causeuse.org:/usr/src/sys/arch/sparc/compile/PIZZA sparc
Architecture: sparc
Machine: sparc
>Description:
netbsd-3 seems to have broken my nell/wi-combo:
NetBSD 3.0_BETA (PIZZA) #1: Wed Jun 8 23:27:04 CEST 2005
hauke@pizza.causeuse.org:/usr/src/sys/arch/sparc/compile/PIZZA
[...]
nell0 at sbus0 slot 0 offset 0x0 level 4 (ipl 7) level 7 (ipl 13): rev 1
pcmcia0 at nell0 socket 0
wi0 at pcmcia0 function 0: <NETGEAR MA401RA Wireless PC, Card, ISL37300P,
Eval-RevA>
wi0: 802.11 address 00:09:5b:54:f1:e5
wi0: using RF:PRISM2.5 MAC:ISL3873B(PCMCIA)
wi0: Intersil Firmware: Primary (1.1.1), Station (1.7.4)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
pcmcia1 at nell0 socket 1
[...]
Configuring network interfaces: wi0stray interrupt ipl 0x7 pc=0xf015c7fc
npc=0xf015c800 psr=400001c4<S,PS>
stray interrupt ipl 0x7 pc=0xf015c7f0 npc=0xf015c7f4 psr=400001c4<S,PS>
wi0: command timed out, cmd=0x2, arg=0x0
wi0: command timed out, cmd=0x0, arg=0x0
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: init failed
wi0: interface not running
wi0: wi_cmd: busy bit won't clear.
ifconfig: wi0: wi_cmd: busy bit won't clear.
SIOCS80211NWKEY: Connection timed out
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: wi_cmd: busy bit won't clear.
wi0: init failed
wi0: interface not running
wi0: wi_cmd: busy bit won't clear.
ifconfig: SIOCSIFMEDIA: Connection timed out
wi0: wi_cmd: busy bit won't clear.
wiconfig: SIOCSWAVELAN: Connection timed out
hme0 bridge0wi0: wi_cmd: busy bit won't clear.
pppoe0.
Adding interface aliases:
[...]
Re-plugging and manually ifconfig(8)uring the card brings it up
with nothing but the usual "stray interrupt" messages.
My Powerbook sees the card's station ID, but does not manage to get an
IP via DHCP.
Setup:
[hauke@pizza] /etc # cat ifconfig.bridge0
!brconfig $int add hme0 add wi0
up
[hauke@pizza] /etc # cat ifconfig.wi0
# $Id: ifconfig.wi0,v 1.4 2004/08/29 14:53:16 hauke Exp hauke $
#
# Set up wlan accesspoint
# Be an accesspoint
up chan 11 nwid Forstquelle nwkey "1234567890123" mediaopt hostap
!/usr/sbin/wiconfig $int -A2
[hauke@pizza] /etc #
-- note that I always had to 'ifconfig wi0 down' and then do the
ifconfig/wiconfig dance manually, or the Powerbook would not be able
to get IP connectivity. But now is different.
Starting from scratch by removing the bridge(4), setting up wi0
manually and adding it to the bridge brings back ip connectivity most
of the time. When it finally works, it keeps working.
The machine runs a netbsd-3 build from 18 May with a slightly newer
kernel (see above).
>How-To-Repeat:
Set up a wireless LAN access-point on sparc with a nell(4) pcmcia
adapter and a wi(4) card (prism based). Notice that after a netbsd-3
update, the kernel fails to properly set up the wi(4) card.
>Fix:
Yes, please.
Workaround: Unplugging and re-plugging the card, and setting
up the interface and thge bridge freshly makes it work most of
the time.
>Unformatted: