Skip to content

Commit

Permalink
csma: Only enter backoff in half duplex mode
Browse files Browse the repository at this point in the history
I don't think this case actually hits (or at least not often?) in full
duplex... if it did, I think an assert would fire elsehwere.  But anyway,
in full duplex, we don't actually do backoff, so we no longer set the
TX state to backoff.
  • Loading branch information
MurphyMc committed Mar 15, 2015
1 parent e3b384e commit af68adc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/csma/model/csma-net-device.cc
Expand Up @@ -483,14 +483,13 @@ CsmaNetDevice::TransmitStart (void)
// rechedule TransmitStart() unless we have exhausted all of our retries.
// If in full duplex mode, we don't need to do this.
//
m_txMachineState = BACKOFF;

if (m_channel->IsFullDuplex ())
{
NS_LOG_LOGIC ("Channel busy!");
}
else
{
m_txMachineState = BACKOFF;
if (m_backoff.MaxRetriesReached ())
{
//
Expand Down

0 comments on commit af68adc

Please sign in to comment.