Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2011 19:31:34 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r224786 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201108111931.p7BJVYLg005795@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Thu Aug 11 19:31:33 2011
New Revision: 224786
URL: http://svn.freebsd.org/changeset/base/224786

Log:
  Update the BAW when packets from an aggregate TID session are being
  deleted.

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c	Thu Aug 11 19:21:48 2011	(r224785)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c	Thu Aug 11 19:31:33 2011	(r224786)
@@ -1809,7 +1809,14 @@ ath_tx_tid_free_pkts(struct ath_softc *s
 		if (bf == NULL) {
 			break;
 		}
-		/* XXX update BAW if needed? */
+
+		/*
+		 * If the current TID is running AMPDU, update
+		 * the BAW.
+		 */
+		if (ath_tx_ampdu_running(sc, an, tid))
+			ath_tx_update_baw(sc, an, atid,
+			    SEQNO(bf->bf_state.bfs_seqno));
 		ATH_TXQ_REMOVE_HEAD(atid, bf_list);
 		ath_tx_freebuf(sc, bf, -1);
 	}



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