|
|
| 541 |
// |
541 |
// |
| 542 |
// The channel is free, transmit the packet |
542 |
// The channel is free, transmit the packet |
| 543 |
// |
543 |
// |
|
|
544 |
m_phyTxBeginTrace (m_currentPkt); |
| 544 |
if (m_channel->TransmitStart (m_currentPkt, m_deviceId) == false) |
545 |
if (m_channel->TransmitStart (m_currentPkt, m_deviceId) == false) |
| 545 |
{ |
546 |
{ |
| 546 |
NS_LOG_WARN ("Channel TransmitStart returns an error"); |
547 |
NS_LOG_WARN ("Channel TransmitStart returns an error"); |
|
|
| 556 |
// |
557 |
// |
| 557 |
m_backoff.ResetBackoffTime (); |
558 |
m_backoff.ResetBackoffTime (); |
| 558 |
m_txMachineState = BUSY; |
559 |
m_txMachineState = BUSY; |
| 559 |
m_phyTxBeginTrace (m_currentPkt); |
|
|
| 560 |
|
560 |
|
| 561 |
Time tEvent = m_bps.CalculateBytesTxTime (m_currentPkt->GetSize ()); |
561 |
Time tEvent = m_bps.CalculateBytesTxTime (m_currentPkt->GetSize ()); |
| 562 |
NS_LOG_LOGIC ("Schedule TransmitCompleteEvent in " << tEvent.GetSeconds () << "sec"); |
562 |
NS_LOG_LOGIC ("Schedule TransmitCompleteEvent in " << tEvent.GetSeconds () << "sec"); |