From df45c061928f531786601acf712fa8b23e5b4918 Mon Sep 17 00:00:00 2001 From: stsp Date: Sun, 7 Aug 2016 23:06:39 +0000 Subject: [PATCH] Make iwm(4) automagically recover from fatal firmware errors by leaving the interface marked UP and scheduling the init task. Matches iwn(4) behaviour. --- sys/dev/pci/if_iwm.c | 4 ++-- 1 file 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 @@ -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; -- 2.20.1