summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2004-11-24 20:57:26 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2004-11-24 20:57:26 +0000
commit1e8430231dedbb58801d55909535b16ebe7ff575 (patch)
tree482db8e1b75b4cfad2c24d8694648298c06ed34e /sys
parent73ec7c508b8c3c4a502c1f95cc299cfdf7c4d2ff (diff)
reset adapter in iwi_stop()
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iwi.c4
1 files changed, 3 insertions, 1 deletions
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;