Atheros, hardware access layer, collisions

Sam Pierson samuel.pierson at gmail.com
Wed Jul 27 20:05:57 GMT 2005


On 7/21/05, Sam Leffler <sam at errno.com> wrote:
> You need to set cwmin on the tx q as David describes.  Be sure to set
> the parameters you set into the hardware; check the wme update code for
> the correct logic.  For the other thing just set the tx descriptor to do
> 1 try.
> 
>         Sam

So like in ath_tx_start:

	ath_hal_setuptxdesc(ah, ds
		, pktlen		/* packet length */
		, hdrlen		/* header length */
		, atype			/* Atheros packet type */
		, ni->ni_txpower	/* txpower */
   -->	      , txrate, 0		/* series 0 rate/tries */  /*  originally:
txrate, try0 */
		, keyix			/* key cache index */
		, sc->sc_txantenna	/* antenna mode */
		, flags			/* flags */
		, ctsrate		/* rts/cts rate */
		, ctsduration		/* rts/cts duration */
	);

This is still just for the first tx desc though.

The following bit then comes:

	if (try0 != ATH_TXMAXTRY)
		ath_rate_setupxtxdesc(sc, an, ds, shortPreamble, rix);

Should I nix this?

-Sam


More information about the freebsd-hackers mailing list