|
|
| 33 |
#include "wifi-mac-trailer.h" |
33 |
#include "wifi-mac-trailer.h" |
| 34 |
#include "wifi-mac.h" |
34 |
#include "wifi-mac.h" |
| 35 |
#include "random-stream.h" |
35 |
#include "random-stream.h" |
|
|
36 |
#include "ns3/trace-source-accessor.h" |
| 36 |
|
37 |
|
| 37 |
NS_LOG_COMPONENT_DEFINE ("DcaTxop"); |
38 |
NS_LOG_COMPONENT_DEFINE ("DcaTxop"); |
| 38 |
|
39 |
|
|
|
| 114 |
MakeUintegerAccessor (&DcaTxop::SetAifsn, |
115 |
MakeUintegerAccessor (&DcaTxop::SetAifsn, |
| 115 |
&DcaTxop::GetAifsn), |
116 |
&DcaTxop::GetAifsn), |
| 116 |
MakeUintegerChecker<uint32_t> ()) |
117 |
MakeUintegerChecker<uint32_t> ()) |
|
|
118 |
.AddTraceSource ("MediumBusy", "The medium is sensed busy.", |
| 119 |
MakeTraceSourceAccessor (&DcaTxop::m_mediumBusyLogger)) |
| 117 |
; |
120 |
; |
| 118 |
return tid; |
121 |
return tid; |
| 119 |
} |
122 |
} |
|
|
| 455 |
{ |
458 |
{ |
| 456 |
NS_LOG_FUNCTION (this); |
459 |
NS_LOG_FUNCTION (this); |
| 457 |
MY_DEBUG ("collision"); |
460 |
MY_DEBUG ("collision"); |
|
|
461 |
m_mediumBusyLogger(); |
| 458 |
m_dcf->StartBackoffNow (m_rng->GetNext (0, m_dcf->GetCw ())); |
462 |
m_dcf->StartBackoffNow (m_rng->GetNext (0, m_dcf->GetCw ())); |
| 459 |
RestartAccessIfNeeded (); |
463 |
RestartAccessIfNeeded (); |
| 460 |
} |
464 |
} |