Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2018 23:02:59 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r339975 - stable/12/sys/dev/ipw
Message-ID:  <201810312302.w9VN2xxw008915@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Wed Oct 31 23:02:59 2018
New Revision: 339975
URL: https://svnweb.freebsd.org/changeset/base/339975

Log:
  MFhead r339643:
  
    Fix ipw_start(), where logic was reverted in r287197.
  
  PR		232554
  Approved by:	re (kib)

Modified:
  stable/12/sys/dev/ipw/if_ipw.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/ipw/if_ipw.c
==============================================================================
--- stable/12/sys/dev/ipw/if_ipw.c	Wed Oct 31 22:55:43 2018	(r339974)
+++ stable/12/sys/dev/ipw/if_ipw.c	Wed Oct 31 23:02:59 2018	(r339975)
@@ -1732,7 +1732,7 @@ ipw_start(struct ipw_softc *sc)
 
 	IPW_LOCK_ASSERT(sc);
 
-	while (sc->txfree < 1 + IPW_MAX_NSEG &&
+	while (sc->txfree >= 1 + IPW_MAX_NSEG &&
 	    (m = mbufq_dequeue(&sc->sc_snd)) != NULL) {
 		ni = (struct ieee80211_node *) m->m_pkthdr.rcvif;
 		if (ipw_tx_start(sc, m, ni) != 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810312302.w9VN2xxw008915>