diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-19 09:58:39 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-19 09:58:39 +0000 |
commit | 6edb1a9fa3a2e27c12e26a9364e4f5b6dcb4d4ab (patch) | |
tree | 574bb018382f29e6e8451fa78c9ad8d901aa8935 /sys | |
parent | 98b154d6d7c54ac7155fb00f45b9e91740a4982b (diff) |
do not transmit any data frame if there is not at least two free descriptors
in the tx ring (CTS/RTS frame + data frame).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ral.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c index dd06b910465..ebb21e039ed 100644 --- a/sys/dev/ic/ral.c +++ b/sys/dev/ic/ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ral.c,v 1.10 2005/02/19 09:45:16 damien Exp $ */ +/* $OpenBSD: ral.c,v 1.11 2005/02/19 09:58:38 damien Exp $ */ /*- * Copyright (c) 2005 @@ -1732,7 +1732,7 @@ ral_start(struct ifnet *ifp) IFQ_DEQUEUE(&ifp->if_snd, m0); if (m0 == NULL) break; - if (sc->txq.queued >= RAL_TX_RING_COUNT) { + if (sc->txq.queued >= RAL_TX_RING_COUNT - 1) { IF_PREPEND(&ifp->if_snd, m0); ifp->if_flags |= IFF_OACTIVE; break; |