summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ah.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-04-13 21:01:08 +0000
committersam <sam@FreeBSD.org>2009-04-13 21:01:08 +0000
commit38966276d4546f2fbbc2a98d667fcbc5df279abf (patch)
treebd37b882ad0eed03e351eec87803435e19bea0de /sys/dev/ath/ath_hal/ah.c
parent804f8da370f960140c3e55184db0e26f7c6f00ca (diff)
downloadFreeBSD-src-38966276d4546f2fbbc2a98d667fcbc5df279abf.zip
FreeBSD-src-38966276d4546f2fbbc2a98d667fcbc5df279abf.tar.gz
o eliminate a << in calculating the tx time for turbo mode by pre-multiplying
data in the phy tables o correct the ctrl rate indices in the 5212 turbog phy table
Diffstat (limited to 'sys/dev/ath/ath_hal/ah.c')
-rw-r--r--sys/dev/ath/ath_hal/ah.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c
index 19150de..63165a5 100644
--- a/sys/dev/ath/ath_hal/ah.c
+++ b/sys/dev/ath/ath_hal/ah.c
@@ -287,8 +287,7 @@ ath_hal_computetxtime(struct ath_hal *ah,
+ (numSymbols * OFDM_QUARTER_SYMBOL_TIME);
break;
case IEEE80211_T_TURBO:
- /* we still save OFDM rates in kbps - so double them */
- bitsPerSymbol = ((kbps << 1) * TURBO_SYMBOL_TIME) / 1000;
+ bitsPerSymbol = (kbps * TURBO_SYMBOL_TIME) / 1000;
HALASSERT(bitsPerSymbol != 0);
numBits = TURBO_PLCP_BITS + (frameLen << 3);
OpenPOWER on IntegriCloud