--- a/src/devices/wifi/mac-low.cc Tue Sep 02 12:13:24 2008 -0700
+++ b/src/devices/wifi/mac-low.cc Tue Sep 02 12:36:37 2008 -0700
@@ -377,6 +377,16 @@
{
m_sifs = sifs;
}
+void
+MacLow::SetSlotTime (Time slotTime)
+{
+ m_slotTime = slotTime;
+}
+void
+MacLow::SetPifs (Time pifs)
+{
+ m_pifs = pifs;
+}
Mac48Address
MacLow::GetAddress (void) const
{
@@ -397,6 +407,16 @@
{
return m_sifs;
}
+Time
+MacLow::GetSlotTime (void) const
+{
+ return m_slotTime;
+}
+Time
+MacLow::GetPifs (void) const
+{
+ return m_pifs;
+}
void
MacLow::SetRxCallback (Callback<void,Ptr<Packet>,const WifiMacHeader *> callback)
@@ -651,16 +671,6 @@
cts.SetType (WIFI_MAC_CTL_CTS);
return cts.GetSize () + 4;
}
-Time
-MacLow::GetSlotTime (void) const
-{
- return m_mac->GetSlot ();
-}
-Time
-MacLow::GetPifs (void) const
-{
- return m_mac->GetPifs ();
-}
uint32_t
MacLow::GetSize (Ptr<const Packet> packet, const WifiMacHeader *hdr) const
{