Subject: Re: kern/30631: wi(4) broken for netgear ma401 (prism2) in -current
To: None <dyoung@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: David Young <dyoung@pobox.com>
List: netbsd-bugs
Date: 07/04/2005 04:58:01
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 Young             OJC Technologies
 dyoung@ojctech.com      Urbana, IL * (217) 278-3933