svn commit: r339975 - stable/12/sys/dev/ipw

Gleb Smirnoff glebius at FreeBSD.org
Wed Oct 31 23:03:00 UTC 2018


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) {


More information about the svn-src-all mailing list