From 9316a5c23f69ad26874ea855caf46ab689fbc7ee Mon Sep 17 00:00:00 2001 From: Federico Maguolo Date: Fri, 23 Nov 2007 10:29:27 +0100 Subject: [PATCH] re-use the CaculateTxDuration method where it is needed. --- src/devices/wifi/wifi-phy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wifi/wifi-phy.cc b/src/devices/wifi/wifi-phy.cc index 4c2e5d9c7..d230e3d2e 100644 --- a/src/devices/wifi/wifi-phy.cc +++ b/src/devices/wifi/wifi-phy.cc @@ -414,7 +414,7 @@ WifiPhy::Configure80211aParameters (void) m_shortPlcpHeaderMode = g_6mba; m_plcpHeaderLength = 4 + 1 + 12 + 1 + 6; /* 4095 bytes at a 6Mb/s rate with a 1/2 coding rate. */ - m_maxPacketDuration = Seconds (4095.0*8.0/6000000.0*(1.0/2.0)); + m_maxPacketDuration = CalculateTxDuration (4095, g_6mba, WIFI_PREAMBLE_LONG); } void