Subject: Re: kern/30631: wi(4) broken for netgear ma401 (prism2) in
To: None <gnats-bugs@netbsd.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: netbsd-bugs
Date: 10/25/2005 10:30:38
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