Date: Mon, 20 May 2013 07:10:43 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250824 - head/sys/dev/ath/ath_hal Message-ID: <201305200710.r4K7AhhG055264@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305200710.r4K7AhhG055264>