Fixes spurious "qwx0: failed to send qmi memory segments: -1" error with
associated lag during 'ifconfig qwx0 down up'
-/* $OpenBSD: qwx.c,v 1.39 2024/02/15 15:53:51 stsp Exp $ */
+/* $OpenBSD: qwx.c,v 1.40 2024/02/15 16:29:45 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
sc->fwmem_ready = 0;
while (sc->sc_req_mem_ind == NULL) {
- ret = tsleep_nsec(&sc->qmi_resp, 0, "qwxfwmem",
+ ret = tsleep_nsec(&sc->sc_req_mem_ind, 0, "qwxfwmem",
SEC_TO_NSEC(10));
if (ret) {
printf("%s: fw memory request timeout\n",