NetBSD Problem Report #30631

From rtr@silence.omicron-persei-8.net  Wed Jun 29 14:25:10 2005
Return-Path: <rtr@silence.omicron-persei-8.net>
Received: from silence.omicron-persei-8.net (220-245-140-30-vic-pppoe.tpgi.com.au [220.245.140.30])
	by narn.netbsd.org (Postfix) with ESMTP id 5BE7863B104
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 29 Jun 2005 14:25:09 +0000 (UTC)
Message-Id: <200506300020.j5U0KSct000493@silence.omicron-persei-8.net>
Date: Thu, 30 Jun 2005 10:20:28 +1000 (EST)
From: rtr@omicron-persei-8.net
Reply-To: rtr@omicron-persei-8.net
To: gnats-bugs@netbsd.org
Subject: wi(4) broken for netgear ma401 (prism2) in -current
X-Send-Pr-Version: 3.95

>Number:         30631
>Category:       kern
>Synopsis:       wi(4) broken for netgear ma401 (prism2) in -current
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    dyoung
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 29 14:26:00 +0000 2005
>Last-Modified:  Tue Oct 25 08:31:01 +0000 2005
>Originator:     Tyler Retzlaff
>Release:        NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD silence.omicron-persei-8.net 3.99.7 NetBSD 3.99.7 (_silence_) #0: Thu Jun 30 03:56:24 EST 2005 rtr@elysium.omicron-persei-8.net:/var/obj/_silence_ i386
Architecture: i386
Machine: i386
>Description:

my old ma401 (prism2) which was working with 3.99.5 is broken in 3.99.7.
It appears to attach okay but as soon as I try to set a WEP key things
appear to go wrong.  Removing it from the pcmcia slot causes more complaints
from the driver.  Output follows.

insert into pcmcia slot, mostly normal but doesn't display the rates line:
cbb1: wait took 0.009992s
wi0 at pcmcia1 function 0: <NETGEAR MA401 Wireless PC, Card, Version 01.00, >
wi0: 802.11 address 00:30:ab:11:f3:f7
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163-SST-flash
wi0: Intersil Firmware: Primary (0.3.0), Station (1.3.4)

attempt to set nwkey with ifconfig:
wi0: timeout in wi_seek to fc2a/0
wi0: timeout in wi_seek to fc28/0
wi0: timeout in wi_seek to fc2a/0
wi0: timeout in wi_seek to fc28/0
wi0: timeout in wi_seek to fc2a/0

remove from pcmcia:
wi0: timeout in wi_seek to ffff/0
wi0: wi_rx_intr read fid ffff failed
wi0: timeout in wi_seek to ffff/8
wi0: wi_rx_intr read fid ffff failed
wi0: timeout in wi_seek to ffff/0
wi0: wi_tx_ex_intr read fid ffff failed
wi0: timeout in wi_seek to ffff/0
wi0: timeout in wi_seek to ffff/4
wi0: wi_cmd: busy bit won't clear
wi0: xmit failed
wi0: detached

Revert to old kernel and it works happily again.

>How-To-Repeat:

Just try to use the hw.

>Fix:

>Release-Note:

>Audit-Trail:
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: kern/30631: wi(4) broken for netgear ma401 (prism2) in
 -current
Date: Wed, 29 Jun 2005 17:59:52 +0200

 Am 29.06.2005 um 14:26 Uhr +0000 schrieb rtr@omicron-persei-8.net:
 >my old ma401 (prism2) which was working with 3.99.5 is broken in 3.99.7.

 I see similar problems on a sparcstation 10 running netbsd-3 of 
 mid-june, see 
 http://mail-index.netbsd.org/port-sparc/2005/06/09/0005.html and the 
 follow-ups.

 	hauke

 -- 
 /~\  The ASCII Ribbon Campaign                    Hauke Fath
 \ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
   X     No Word docs in email	                  TU Darmstadt
 / \  Respect for open standards              Ruf +49-6151-16-3281

Responsible-Changed-From-To: kern-bug-people->dyoung
Responsible-Changed-By: dyoung@netbsd.org
Responsible-Changed-When: Mon, 04 Jul 2005 04:50:59 +0000
Responsible-Changed-Why:
I will take care of this one.


From: David Young <dyoung@pobox.com>
To: gnats-bugs@netbsd.org
Cc: rtr@netbsd.org
Subject: Re: kern/30631: wi(4) broken for netgear ma401 (prism2) in -current
Date: Sun, 3 Jul 2005 23:57:35 -0500

 Try this patch.

 Dave

 Index: wi.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/ic/wi.c,v
 retrieving revision 1.201
 diff -u -r1.201 wi.c
 --- wi.c	26 Jun 2005 21:51:37 -0000	1.201
 +++ wi.c	4 Jul 2005 04:50:04 -0000
 @@ -2499,7 +2512,8 @@

  	if ((sc->sc_flags & WI_FLAGS_WEP_VALID) != 0)
  		return;
 -	if (ic->ic_caps & IEEE80211_C_WEP)
 +	if ((ic->ic_caps & IEEE80211_C_WEP) != 0 && sc->sc_enabled &&
 +	    !sc->sc_invalid)
  		(void)wi_write_wep(sc);
  }


 -- 
 David Young             OJC Technologies
 dyoung@ojctech.com      Urbana, IL * (217) 278-3933

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@netbsd.org
Cc: dyoung@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, Hauke Fath <hf@spg.tu-darmstadt.de>,
	Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: Re: kern/30631: wi(4) broken for netgear ma401 (prism2) in
 -current
Date: Tue, 25 Oct 2005 10:30:38 +0200

 Am 04.07.2005 um 4:58 Uhr +0000 schrieb David Young:
 >The following reply was made to PR kern/30631; it has been noted by GNATS.
 >
 >From: David Young <dyoung@pobox.com>
 >To: gnats-bugs@netbsd.org
 >Cc: rtr@netbsd.org
 >Subject: Re: kern/30631: wi(4) broken for netgear ma401 (prism2) in -current
 >Date: Sun, 3 Jul 2005 23:57:35 -0500
 >
 >  Try this patch.
 >
 >  Dave
 >
 >  Index: wi.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/dev/ic/wi.c,v
 >  retrieving revision 1.201
 >  diff -u -r1.201 wi.c
 >  --- wi.c	26 Jun 2005 21:51:37 -0000	1.201
 >  +++ wi.c	4 Jul 2005 04:50:04 -0000
 >  @@ -2499,7 +2512,8 @@
 >
 >  	if ((sc->sc_flags & WI_FLAGS_WEP_VALID) != 0)
 >  		return;
 >  -	if (ic->ic_caps & IEEE80211_C_WEP)
 >  +	if ((ic->ic_caps & IEEE80211_C_WEP) != 0 && sc->sc_enabled &&
 >  +	    !sc->sc_invalid)
 >  		(void)wi_write_wep(sc);
 >   }
 >

 David,

 as a late follow-up: No, the patch doesn't change anything. With 
 netbsd-3 as of yesterday, after a reboot I have to manually ifconfig 
 wi0 down and re-configure to be able to use the card.

 Anything else you'd want me to try?

 	hauke


 -- 
 /~\  The ASCII Ribbon Campaign                    Hauke Fath
 \ /    No HTML/RTF in email	        Institut fŸr Nachrichtentechnik
   X     No Word docs in email	                  TU Darmstadt
 / \  Respect for open standards              Ruf +49-6151-16-3281

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.