From: kevlo Date: Fri, 14 Jul 2023 14:28:47 +0000 (+0000) Subject: Check if the OWN bit of Tx descriptor instead of Rx descriptor is set X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5144f9456b7571f2277ed7d51bb71e8b59afe211;p=openbsd Check if the OWN bit of Tx descriptor instead of Rx descriptor is set in rtwn_tx(). Because definitions of R92C_TXDW0_OWN and R92C_RXDW0_OWN are the same, no functional change. ok stsp@ --- diff --git a/sys/dev/pci/if_rtwn.c b/sys/dev/pci/if_rtwn.c index 8961e892132..121b5a3cd8c 100644 --- a/sys/dev/pci/if_rtwn.c +++ b/sys/dev/pci/if_rtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rtwn.c,v 1.40 2022/04/21 21:03:03 stsp Exp $ */ +/* $OpenBSD: if_rtwn.c,v 1.41 2023/07/14 14:28:47 kevlo Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini @@ -1022,7 +1022,7 @@ rtwn_tx(void *cookie, struct mbuf *m, struct ieee80211_node *ni) /* Fill Tx descriptor. */ txd = &tx_ring->desc[tx_ring->cur]; - if (htole32(txd->txdw0) & R92C_RXDW0_OWN) { + if (htole32(txd->txdw0) & R92C_TXDW0_OWN) { m_freem(m); return (ENOBUFS); }