]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Shuffle around the RTS/CTS rate/duration logic.
authoradrian <adrian@FreeBSD.org>
Tue, 22 Feb 2011 00:37:53 +0000 (00:37 +0000)
committeradrian <adrian@FreeBSD.org>
Tue, 22 Feb 2011 00:37:53 +0000 (00:37 +0000)
commita186021311f64b0401dcfe1485d103a556f01655
tree9790a627250d1c0522060a831701e600aa9832c6
parent66c3d76f69e25a5e997a0262d906406ccd1116bf
Shuffle around the RTS/CTS rate/duration logic.

* Turn ath_tx_calc_ctsduration() into a function that
  returns the ctsduration, or -1 for HT rates;
* add a printf() to ath_tx_calc_ctsduration() which will be
  very loud if somehow that function is called with an MCS
  rate;
* Add ath_tx_get_rtscts_rate() which returns the RTS/CTS
  rate to use for the given data rate, incl. the short
  preamble flag;
* Only call ath_tx_calc_ctsduration() for non-11n chipsets;
  11n chipsets don't require the rtscts duration to be
  calculated.
sys/dev/ath/if_ath_tx.c