summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/bwi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index 0150c5f9fd0..6240292027d 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.8 2007/09/13 12:33:18 mglocker Exp $ */
+/* $OpenBSD: bwi.c,v 1.9 2007/09/13 18:40:24 mglocker Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -5503,6 +5503,7 @@ bwi_detach(void *arg)
bwi_stop(sc);
ieee80211_ifdetach(ifp);
+ if_detach(ifp);
for (i = 0; i < sc->sc_nmac; ++i)
bwi_mac_detach(&sc->sc_mac[i]);