NetBSD Problem Report #30592

From yamt@mwd.biglobe.ne.jp  Fri Jun 24 17:30:37 2005
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from yamt.dyndns.org (FLA1Aau123.kng.mesh.ad.jp [219.107.129.123])
	by narn.netbsd.org (Postfix) with ESMTP id 155A263B116
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Jun 2005 17:30:37 +0000 (UTC)
Message-Id: <1119634226.670899.661.nullmailer@yamt.dyndns.org>
Date: Sat, 25 Jun 2005 02:30:26 +0900
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@netbsd.org
Subject: wi(4) doesn't work
X-Send-Pr-Version: 3.95

>Number:         30592
>Category:       kern
>Synopsis:       wi(4) doesn't work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    dyoung
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 24 17:31:00 +0000 2005
>Closed-Date:    Wed Jul 06 06:51:14 +0000 2005
>Last-Modified:  Wed Jul 06 06:51:14 +0000 2005
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 3.99.7
>Organization:

>Environment:


System: NetBSD kaeru 3.99.7 NetBSD 3.99.7 (build.kaeru.nodebug) #74: Sat Jun 25 02:11:12 JST 2005 takashi@kaeru:/home/takashi/work/kernel/build.kaeru.nodebug i386
Architecture: i386
Machine: i386
>Description:
	after updating kernel, wi(4) stops working for me.
	the same hardware used to work fine with a kernel around 20050614.
	i'm not using wep.

	all received packets will be dropped on "is_rx_unauth".
	to me, it seems that IEEE80211_NODE_AUTH is never set as
	wi_newstate doesn't call ieee80211_newstate.

	wi0 at pcmcia0 function 0: <ZyXEL, ZyAIR/100, >
	wi0: 802.11 address 00:a0:c5:15:14:05
	wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A
	wi0: Intersil Firmware: Primary (0.3.0), Station (0.7.6)

>How-To-Repeat:
>Fix:
	the following patch works for me.
	i'm not sure if it's right, though.

Index: wi.c
===================================================================
--- wi.c	(revision 1222)
+++ wi.c	(working copy)
@@ -2953,9 +2953,8 @@ wi_newstate(struct ieee80211com *ic, enu
 		rt_ifmsg(ifp);
 		splx(s);
 	}
-	ic->ic_state = nstate;
-	/* skip standard ieee80211 handling */
-	return 0;
+
+	return (*sc->sc_newstate)(ic, nstate, arg);
 }

 STATIC void

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->dyoung
Responsible-Changed-By: dyoung@netbsd.org
Responsible-Changed-When: Fri, 24 Jun 2005 18:27:14 +0000
Responsible-Changed-Why:
I will take care of it.


From: David Young <dyoung@pobox.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/30592: wi(4) doesn't work
Date: Mon, 4 Jul 2005 00:06:58 -0500

 On Sun, Jun 26, 2005 at 05:20:24PM +0900, YAMAMOTO Takashi wrote:
 > > >Number:         30592
 > > >Category:       kern
 > > >Synopsis:       wi(4) doesn't work
 > 
 > wi.c rev.1.199 seems to work except the following problems.
 > 
 > 1. (the first attempt of?) "ifconfig wi0 -nwkey" takes longer than before
 >    and causes the following messages.

 Try this patch,

 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);
  }


 Dave

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

From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
To: dyoung@pobox.com
Cc: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/30592: wi(4) doesn't work
Date: Mon, 04 Jul 2005 17:48:38 +0900

 > > > >Number:         30592
 > > > >Category:       kern
 > > > >Synopsis:       wi(4) doesn't work
 > > 
 > > wi.c rev.1.199 seems to work except the following problems.
 > > 
 > > 1. (the first attempt of?) "ifconfig wi0 -nwkey" takes longer than before
 > >    and causes the following messages.
 > 
 > Try this patch,

 works fine for me.

 YAMAMOTO Takashi

State-Changed-From-To: open->closed
State-Changed-By: dyoung@netbsd.org
State-Changed-When: Wed, 06 Jul 2005 06:51:14 +0000
State-Changed-Why:
Fixed by wi.c revision 1.202


>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.