mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Make the HT rate duration calculation work for MCS rates > 15.
This commit is contained in:
parent
025069f984
commit
5b66d8a5ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250824
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user