src/devices/wifi/mac-low.cc
changeset 3598 7b209b3b6af2
parent 3597 fe35e5be4b78
child 3599 721bd46c15f8
equal deleted inserted replaced
3597:fe35e5be4b78 3598:7b209b3b6af2
   370 void 
   370 void 
   371 MacLow::SetCtsTimeout (Time ctsTimeout)
   371 MacLow::SetCtsTimeout (Time ctsTimeout)
   372 {
   372 {
   373   m_ctsTimeout = ctsTimeout;
   373   m_ctsTimeout = ctsTimeout;
   374 }
   374 }
       
   375 void
       
   376 MacLow::SetSifs (Time sifs)
       
   377 {
       
   378   m_sifs = sifs;
       
   379 }
   375 Mac48Address 
   380 Mac48Address 
   376 MacLow::GetAddress (void) const
   381 MacLow::GetAddress (void) const
   377 {
   382 {
   378   return m_self;
   383   return m_self;
   379 }
   384 }
   384 }
   389 }
   385 Time 
   390 Time 
   386 MacLow::GetCtsTimeout (void) const
   391 MacLow::GetCtsTimeout (void) const
   387 {
   392 {
   388   return m_ctsTimeout;
   393   return m_ctsTimeout;
       
   394 }
       
   395 Time
       
   396 MacLow::GetSifs (void) const
       
   397 {
       
   398   return m_sifs;
   389 }
   399 }
   390 
   400 
   391 void 
   401 void 
   392 MacLow::SetRxCallback (Callback<void,Ptr<Packet>,const WifiMacHeader *> callback)
   402 MacLow::SetRxCallback (Callback<void,Ptr<Packet>,const WifiMacHeader *> callback)
   393 {
   403 {
   640   WifiMacHeader cts;
   650   WifiMacHeader cts;
   641   cts.SetType (WIFI_MAC_CTL_CTS);
   651   cts.SetType (WIFI_MAC_CTL_CTS);
   642   return cts.GetSize () + 4;
   652   return cts.GetSize () + 4;
   643 }
   653 }
   644 Time
   654 Time
   645 MacLow::GetSifs (void) const
       
   646 {
       
   647   return m_mac->GetSifs ();
       
   648 }
       
   649 Time
       
   650 MacLow::GetSlotTime (void) const
   655 MacLow::GetSlotTime (void) const
   651 {
   656 {
   652   return m_mac->GetSlot ();
   657   return m_mac->GetSlot ();
   653 }
   658 }
   654 Time
   659 Time