Date: Wed Jun 22 14:33:16 2011
New Revision: 223423
Squirrel away a cheap copy of the sequence number to use in later trechery.
When doing A-MPDU, the sequence number of the current packet is needed
in order to ensure what's queued to the hardware is within the BAW.
When doing aggregation, the sequence number of the current packet is
needed to see whether to squeeze said packet into an aggregate.
The code could use M_SEQNO() (and I may do that later) but one of my aims
is to separate out the code which handles mbufs to the code which does
all the rest of it.
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Wed Jun 22 14:27:30 2011 (r223422)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Wed Jun 22 14:33:16 2011 (r223423)
@@ -965,6 +965,12 @@ ath_tx_start(struct ath_softc *sc, struc
seqno = ath_tx_tid_seqno_assign(sc, ni, bf, m0);
+ * If needed, the sequence number has been assigned.
+ * Squirrel it away somewhere easy to get to.
+ bf->bf_state.bfs_seqno = M_SEQNO_GET(m0);
/* Is ampdu pending? fetch the seqno and print it out */