mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 07:13:36 +02:00
in the qwx newstate task, only attempt to reset the device if RUNNING
If we are not RUNNING then we are being called from qwx_stop(), and any error recovery the init task would try to perform would at best be pointless and might even cause problems.
This commit is contained in:
+3
-2
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: qwx.c,v 1.123 2026/05/31 13:53:02 stsp Exp $ */
|
||||
/* $OpenBSD: qwx.c,v 1.124 2026/05/31 13:54:17 stsp Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
|
||||
@@ -1221,7 +1221,8 @@ next_scan:
|
||||
break;
|
||||
}
|
||||
out:
|
||||
if (!test_bit(ATH11K_FLAG_CRASH_FLUSH, sc->sc_flags)) {
|
||||
if (!test_bit(ATH11K_FLAG_CRASH_FLUSH, sc->sc_flags) &&
|
||||
(ifp->if_flags & IFF_RUNNING)) {
|
||||
if (err)
|
||||
task_add(systq, &sc->init_task);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user