svn commit: r250824 - head/sys/dev/ath/ath_hal
Adrian Chadd
adrian at FreeBSD.org
Mon May 20 07:10:44 UTC 2013
Author: adrian
Date: Mon May 20 07:10:43 2013
New Revision: 250824
URL: http://svnweb.freebsd.org/changeset/base/250824
Log:
Make the HT rate duration calculation work for MCS rates > 15.
Modified:
head/sys/dev/ath/ath_hal/ah.c
Modified: head/sys/dev/ath/ath_hal/ah.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.c Mon May 20 03:15:25 2013 (r250823)
+++ head/sys/dev/ath/ath_hal/ah.c Mon May 20 07:10:43 2013 (r250824)
@@ -327,9 +327,9 @@ ath_computedur_ht(uint32_t frameLen, uin
KASSERT((rate &~ IEEE80211_RATE_MCS) < 31, ("bad mcs 0x%x", rate));
if (isht40)
- bitsPerSymbol = ht40_bps[rate & 0xf];
+ bitsPerSymbol = ht40_bps[rate & 0x1f];
else
- bitsPerSymbol = ht20_bps[rate & 0xf];
+ bitsPerSymbol = ht20_bps[rate & 0x1f];
numBits = OFDM_PLCP_BITS + (frameLen << 3);
numSymbols = howmany(numBits, bitsPerSymbol);
if (isShortGI)
More information about the svn-src-all
mailing list