Subject: Re: kern/36719: Several problems with wpi(4) and WEP or WPA
To: None <gnats-bugs@NetBSD.org>
From: None <degroote@netbsd.org>
List: netbsd-bugs
Date: 08/03/2007 21:52:03
--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

Can you try the following patch. I think it must solve the first part of
your PR.

More investigation are needed for other parts.

Take cares.

-- 
Arnaud Degroote
degroote@netbsd.org

--6c2NcOVqGQ03X4Wi
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="if_wpi.c.diff"

Index: if_wpi.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_wpi.c,v
retrieving revision 1.17
diff -u -r1.17 if_wpi.c
--- if_wpi.c	18 Jul 2007 18:49:16 -0000	1.17
+++ if_wpi.c	2 Aug 2007 23:35:24 -0000
@@ -3003,6 +3016,7 @@
 	uint32_t tmp;
 	int qid, ntries, error;
 
+	wpi_stop(ifp,1);
 	(void)wpi_reset(sc);
 
 	wpi_mem_lock(sc);

--6c2NcOVqGQ03X4Wi--