changeset 2167 | 3b0f18764163 |
parent 2166 | 00b5eb43dba2 |
child 2173 | 7437d8a72987 |
--- a/src/devices/wifi/wifi-phy.cc Fri Nov 23 10:23:55 2007 +0100 +++ b/src/devices/wifi/wifi-phy.cc Fri Nov 23 10:29:27 2007 +0100 @@ -414,7 +414,7 @@ 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