From: stsp Date: Wed, 5 Jul 2023 15:07:28 +0000 (+0000) Subject: Add iwm/iwx background scan task to the queue which it will be deleted from. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=daf46e4166c97b4a3f147065d35c32655df04905;p=openbsd Add iwm/iwx background scan task to the queue which it will be deleted from. The corresponding task_add and task_del calls were operating on different queues by mistake. Background scan tasks should now get cancelled properly during driver state transitions. ok mvs@ --- diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 1547120ea8f..5f8042deefc 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.407 2023/04/14 12:45:10 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.408 2023/07/05 15:07:28 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh @@ -8574,7 +8574,7 @@ iwm_bgscan_done(struct ieee80211com *ic, free(sc->bgscan_unref_arg, M_DEVBUF, sc->bgscan_unref_arg_size); sc->bgscan_unref_arg = arg; sc->bgscan_unref_arg_size = arg_size; - iwm_add_task(sc, sc->sc_nswq, &sc->bgscan_done_task); + iwm_add_task(sc, systq, &sc->bgscan_done_task); } void diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index c7c71f38f61..26b002045aa 100644 --- a/sys/dev/pci/if_iwx.c +++ b/sys/dev/pci/if_iwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwx.c,v 1.174 2023/07/03 09:12:05 jsg Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.175 2023/07/05 15:07:28 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh @@ -7607,7 +7607,7 @@ iwx_bgscan_done(struct ieee80211com *ic, free(sc->bgscan_unref_arg, M_DEVBUF, sc->bgscan_unref_arg_size); sc->bgscan_unref_arg = arg; sc->bgscan_unref_arg_size = arg_size; - iwx_add_task(sc, sc->sc_nswq, &sc->bgscan_done_task); + iwx_add_task(sc, systq, &sc->bgscan_done_task); } void