summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwi.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2010-11-15 19:11:58 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2010-11-15 19:11:58 +0000
commit7a2a4c31b994be46bac37b48a27646b94afc0b5b (patch)
tree474d9055f33670cd7d690ea86ad3e39b6ab93d58 /sys/dev/pci/if_iwi.c
parent5814886737337f7f733c38eafe95bd515bff4ffc (diff)
Reset ic_scan_lock in {ipw,iwi}_stop similarly to {wpi,iwn}_stop.
From Jeremy Chase.
Diffstat (limited to 'sys/dev/pci/if_iwi.c')
-rw-r--r--sys/dev/pci/if_iwi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index afdefcf79a3..8530ec401c0 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.110 2010/09/07 16:21:45 deraadt Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.111 2010/11/15 19:11:57 damien Exp $ */
/*-
* Copyright (c) 2004-2008
@@ -2339,6 +2339,9 @@ iwi_stop(struct ifnet *ifp, int disable)
ifp->if_timer = 0;
ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
+ /* in case we were scanning, release the scan "lock" */
+ ic->ic_scan_lock = IEEE80211_SCAN_UNLOCKED;
+
ieee80211_new_state(ic, IEEE80211_S_INIT, -1);
iwi_stop_master(sc);