From: stsp Date: Sun, 18 Jul 2021 12:03:57 +0000 (+0000) Subject: Newer iwx(4) firmware doesn't like the DQA command anymore. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0c5e7bd45b5ea5424a4835f90cbaee1ba504b331;p=openbsd 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. --- 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 @@ -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);