summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2021-07-18 12:03:58 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2021-07-18 12:03:58 +0000
commitcf0c54c87a2b550715f34198d3608d5623170913 (patch)
tree6b549467650bcc496cd74706efa65ba504ed236d /sys
parent0d14d9544b153488974f328b0e64a24add22090d (diff)
Newer iwx(4) firmware doesn't like the DQA command anymore.
Check whether firmware advertises DQA support before sending the DQA command during device initialization. Newer firmware will raise a fatal error otherwise. The Tx queue API has been redesigned yet again.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iwx.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c
index cd019fc4890..0183a8b58c7 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.65 2021/07/18 11:56:11 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.66 2021/07/18 12:03:57 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -7349,9 +7349,11 @@ iwx_init_hw(struct iwx_softc *sc)
if (err)
return err;
- err = iwx_send_dqa_cmd(sc);
- if (err)
- return err;
+ if (isset(sc->sc_enabled_capa, IWX_UCODE_TLV_CAPA_DQA_SUPPORT)) {
+ err = iwx_send_dqa_cmd(sc);
+ if (err)
+ return err;
+ }
/* Add auxiliary station for scanning */
err = iwx_add_aux_sta(sc);