PERFORCE change 45041 for review
Sam Leffler
sam at FreeBSD.org
Fri Jan 9 15:27:47 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=45041
Change 45041 by sam at sam_ebb on 2004/01/09 15:26:52
workaround h/w limitation
Affected files ...
.. //depot/projects/netperf+sockets/sys/dev/ath/if_ath.c#12 edit
Differences ...
==== //depot/projects/netperf+sockets/sys/dev/ath/if_ath.c#12 (text+ko) ====
@@ -2177,6 +2177,24 @@
__func__, i, ds->ds_link, ds->ds_data,
ds->ds_ctl0, ds->ds_ctl1, ds->ds_hw[0], ds->ds_hw[1]));
}
+ if (try0 != ATH_TXMAXTRY && bf->bf_nseg > 1) {
+ /*
+ * Copy the try counts to the final descriptor if
+ * we're doing multi-rate retry and multiple descriptors
+ * are being used. This permits the hal to properly
+ * calculate the retry count. Otherwise it doesn't
+ * have the information available because it only gets
+ * the last descriptor and this info is in the first.
+ * The driver can't calculate this because it doesn't
+ * know about the format of the xmit descriptor. Sigh,
+ * would've been nice for the hardware to do this for us.
+ */
+ ath_hal_setupxtxdesc(ah, --ds
+ , an->an_tx_rate1sp, 2 /* series 1 */
+ , an->an_tx_rate2sp, 2 /* series 2 */
+ , an->an_tx_rate3sp, 2 /* series 3 */
+ );
+ }
/*
* Insert the frame on the outbound list and
More information about the p4-projects
mailing list