Date: Fri, 9 Jan 2004 15:27:31 -0800 (PST) From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 45041 for review Message-ID: <200401092327.i09NRVJc006545@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=45041 Change 45041 by sam@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401092327.i09NRVJc006545>