Subject: Re: kern/30592: wi(4) doesn't work
To: None <gnats-bugs@netbsd.org>
From: David Young <dyoung@pobox.com>
List: netbsd-bugs
Date: 07/04/2005 00:06:58
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