From: stsp Date: Sun, 7 Aug 2016 23:06:39 +0000 (+0000) Subject: Make iwm(4) automagically recover from fatal firmware errors by leaving the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=df45c061928f531786601acf712fa8b23e5b4918;p=openbsd Make iwm(4) automagically recover from fatal firmware errors by leaving the interface marked UP and scheduling the init task. Matches iwn(4) behaviour. --- 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 @@ -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;