From 1e8430231dedbb58801d55909535b16ebe7ff575 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 24 Nov 2004 20:57:26 +0000 Subject: reset adapter in iwi_stop() --- sys/dev/pci/if_iwi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index 64e68f31b35..29104bfe1a2 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $Id: if_iwi.c,v 1.10 2004/11/24 20:50:55 damien Exp $ */ +/* $Id: if_iwi.c,v 1.11 2004/11/24 20:57:25 damien Exp $ */ /*- * Copyright (c) 2004 @@ -2016,6 +2016,8 @@ iwi_stop(struct ifnet *ifp, int disable) struct ieee80211com *ic = &sc->sc_ic; iwi_stop_master(sc); + CSR_WRITE_4(sc, IWI_CSR_RST, IWI_RST_SW_RESET); + iwi_free_queues(sc); ifp->if_timer = 0; -- cgit v1.2.3