1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

Since it's not immediately obvious whether the current TX path handles

fragment rate lookups correctly, add a comment describing exactly that.

The assumption in the fragment duration code is the duration of the next
fragment will match the rate used by the current fragment.  But I think
a rate lookup is being done for _each_ fragment.  For older pre-sample
rate control this would almost always be the case, but for sample
it may be incorrect more often then correct.
This commit is contained in:
Adrian Chadd 2012-10-26 16:31:12 +00:00
parent 92f798418c
commit 9572684af7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242144

View File

@ -1067,6 +1067,10 @@ ath_tx_calc_duration(struct ath_softc *sc, struct ath_buf *bf)
* Include the size of next fragment so NAV is
* updated properly. The last fragment uses only
* the ACK duration
*
* XXX TODO: ensure that the rate lookup for each
* fragment is the same as the rate used by the
* first fragment!
*/
dur += ath_hal_computetxtime(ah, rt,
bf->bf_m->m_nextpkt->m_pkthdr.len,