diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2018-04-20 09:40:37 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2018-04-20 09:40:37 +0000 |
commit | 19ba523bdc430ccce8b245173cbe3bb2cc7bc516 (patch) | |
tree | e6392056fe92e985fff45c82f640141585cb253c /sys/net80211 | |
parent | d1a66036605de594a13bf5fee08a5ad8cc880fd7 (diff) |
remove the background scan timeout on detach, so we don't crash shortly
afterwards.
crash reported by Piotr Isajew
ok stsp@
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 407da701240..da43082d70c 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.c,v 1.65 2017/12/12 15:52:49 stsp Exp $ */ +/* $OpenBSD: ieee80211.c,v 1.66 2018/04/20 09:40:36 jmatthew Exp $ */ /* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */ /*- @@ -193,6 +193,7 @@ ieee80211_ifdetach(struct ifnet *ifp) { struct ieee80211com *ic = (void *)ifp; + timeout_del(&ic->ic_bgscan_timeout); ieee80211_proto_detach(ifp); ieee80211_crypto_detach(ifp); ieee80211_node_detach(ifp); |