svn commit: r339976 - stable/11/sys/dev/ipw

Gleb Smirnoff glebius at FreeBSD.org
Wed Oct 31 23:05:48 UTC 2018


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


More information about the svn-src-stable-11 mailing list