From 8107ed2eda2556e766c95c78481a4b4f83f2ed91 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 17 May 2001 22:20:54 +0000 Subject: [PATCH] Disable the wi driver locking for now. The driver tries to tsleep with the driver lock held on detach which can lead to annoying and useless panics. --- sys/dev/wi/if_wireg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/wi/if_wireg.h b/sys/dev/wi/if_wireg.h index 7166391e3d7..6b0dbfa6aa8 100644 --- a/sys/dev/wi/if_wireg.h +++ b/sys/dev/wi/if_wireg.h @@ -134,8 +134,8 @@ struct wi_softc { int wi_prism2; /* set to 1 if it uses a Prism II chip */ }; -#define WI_LOCK(_sc) mtx_lock(&(_sc)->wi_mtx) -#define WI_UNLOCK(_sc) mtx_unlock(&(_sc)->wi_mtx) +#define WI_LOCK(_sc) +#define WI_UNLOCK(_sc) #define WI_TIMEOUT 65536