Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2018 23:05:44 +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-11@freebsd.org
Subject:   svn commit: r339976 - stable/11/sys/dev/ipw
Message-ID:  <201810312305.w9VN5im8009391@repo.freebsd.org>

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

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

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

Modified: stable/11/sys/dev/ipw/if_ipw.c
==============================================================================
--- stable/11/sys/dev/ipw/if_ipw.c	Wed Oct 31 23:02:59 2018	(r339975)
+++ stable/11/sys/dev/ipw/if_ipw.c	Wed Oct 31 23:05:44 2018	(r339976)
@@ -1728,7 +1728,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?201810312305.w9VN5im8009391>