diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-06-12 13:11:28 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-06-12 13:11:28 +0000 |
commit | cc94ef580916d76a56deabbad43a35eb663245ed (patch) | |
tree | 106dd198d78812a66aab6cfbb75bf9aacbf616ea | |
parent | f317ef8b497c6b651169b85e357ee7a93618a276 (diff) |
Actually trigger iwm_init_task() from iwm_watchdog() as intended to give
recovery after device timeout a chance. Don't mess with the IFF_UP flag
in the watchdog since this isn't done anywhere except intel wifi drivers
which probably copied this pattern amongst each other.
ok kettenis@
-rw-r--r-- | sys/dev/pci/if_iwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 0ffefc57677..f129041ebdf 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.42 2015/05/30 02:49:23 deraadt Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.43 2015/06/12 13:11:27 stsp Exp $ */ /* * Copyright (c) 2014 genua mbh <info@genua.de> @@ -5720,8 +5720,7 @@ iwm_watchdog(struct ifnet *ifp) #ifdef IWM_DEBUG iwm_nic_error(sc); #endif - ifp->if_flags &= ~IFF_UP; - iwm_stop(ifp, 1); + task_add(systq, &sc->init_task); ifp->if_oerrors++; return; } |