diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-08-07 23:06:40 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-08-07 23:06:40 +0000 |
commit | f1c145c4fe0c45d4b8e58e486c99764dade7b379 (patch) | |
tree | 120c459dd67c27249b6c9a5bca65931f38491c12 /sys/dev/pci | |
parent | 69448f8818ee3dc9fff403ba385a8a0572f63ea7 (diff) |
Make iwm(4) automagically recover from fatal firmware errors by leaving the
interface marked UP and scheduling the init task. Matches iwn(4) behaviour.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_iwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index ed672cd3c3f..998a402bc7b 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.96 2016/07/20 18:24:38 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.97 2016/08/07 23:06:39 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -7600,8 +7600,8 @@ iwm_intr(void *arg) #endif printf("%s: fatal firmware error\n", DEVNAME(sc)); - ifp->if_flags &= ~IFF_UP; iwm_stop(ifp, 1); + task_add(systq, &sc->init_task); rv = 1; goto out; |