summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-05-20 07:10:43 +0000
committeradrian <adrian@FreeBSD.org>2013-05-20 07:10:43 +0000
commit861524b68ce61380ace5a4ed8dc77fbb359ed031 (patch)
tree83d5b4e3911853225d9650bed516462a68c43cec /sys/dev
parenta054c02d31fb838c7253c97946fd2ec0d8a0861e (diff)
downloadFreeBSD-src-861524b68ce61380ace5a4ed8dc77fbb359ed031.zip
FreeBSD-src-861524b68ce61380ace5a4ed8dc77fbb359ed031.tar.gz
Make the HT rate duration calculation work for MCS rates > 15.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/ath_hal/ah.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c
index 9a30dba..574e46c 100644
--- a/sys/dev/ath/ath_hal/ah.c
+++ b/sys/dev/ath/ath_hal/ah.c
@@ -327,9 +327,9 @@ ath_computedur_ht(uint32_t frameLen, uint16_t rate, int streams,
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)
OpenPOWER on IntegriCloud