summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/etheriwl.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-11-15 14:54:09 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-11-15 14:54:09 +0100
commit3f835565d5a8366ebb48fd611d3cd902db766b93 (patch)
tree460a084b0f1a9c13c332d93478fa632d55059f47 /sys/src/9/pc/etheriwl.c
parent2a946b24a6b9ff38a33e27d54b46dbb898373267 (diff)
etheriwl: bring back recovery on flushq timeout
Diffstat (limited to 'sys/src/9/pc/etheriwl.c')
-rw-r--r--sys/src/9/pc/etheriwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c
index 909558b54..f003b5da7 100644
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -3502,6 +3502,7 @@ flushq(Ctlr *ctlr, uint qid)
qunlock(q);
if(ctlr->broken)
return "flushq: broken";
+ ctlr->broken = 1;
return "flushq: timeout";
}
@@ -4296,6 +4297,7 @@ iwlshutdown(Ether *edev)
if(ctlr->power)
poweroff(ctlr);
ctlr->broken = 0;
+ pcidisable(ctlr->pdev);
}
static Ctlr *iwlhead, *iwltail;