73 { |
73 { |
74 static TypeId tid = TypeId ("ns3::WifiMac") |
74 static TypeId tid = TypeId ("ns3::WifiMac") |
75 .SetParent<Object> () |
75 .SetParent<Object> () |
76 .AddAttribute ("CtsTimeout", "When this timeout expires, the RTS/CTS handshake has failed.", |
76 .AddAttribute ("CtsTimeout", "When this timeout expires, the RTS/CTS handshake has failed.", |
77 TimeValue (GetDefaultCtsAckTimeout ()), |
77 TimeValue (GetDefaultCtsAckTimeout ()), |
78 MakeTimeAccessor (&WifiMac::m_ctsTimeout), |
78 MakeTimeAccessor (&WifiMac::SetCtsTimeout, |
|
79 &WifiMac::GetCtsTimeout), |
79 MakeTimeChecker ()) |
80 MakeTimeChecker ()) |
80 .AddAttribute ("AckTimeout", "When this timeout expires, the DATA/ACK handshake has failed.", |
81 .AddAttribute ("AckTimeout", "When this timeout expires, the DATA/ACK handshake has failed.", |
81 TimeValue (GetDefaultCtsAckTimeout ()), |
82 TimeValue (GetDefaultCtsAckTimeout ()), |
82 MakeTimeAccessor (&WifiMac::GetAckTimeout, |
83 MakeTimeAccessor (&WifiMac::GetAckTimeout, |
83 &WifiMac::SetAckTimeout), |
84 &WifiMac::SetAckTimeout), |