commit debug stuff for merge with ns-3-lena-dev
authorMarco Miozzo <marco.miozzo@cttc.es>
Thu, 24 Nov 2011 12:30:32 +0100
changeset 8512 3b33e0855d77
parent 8511 46046bbb2a5c
child 8513 a653675ae42e
commit debug stuff for merge with ns-3-lena-dev
src/lte/model/lte-spectrum-phy.cc
src/lte/model/lte-ue-phy.cc
--- a/src/lte/model/lte-spectrum-phy.cc	Wed Nov 23 17:45:54 2011 +0100
+++ b/src/lte/model/lte-spectrum-phy.cc	Thu Nov 24 12:30:32 2011 +0100
@@ -224,24 +224,6 @@
   m_state = newState;
 }
 
-void
-LteSpectrumPhy::AddExpectedTb (uint16_t  rnti, uint16_t size, uint8_t mcs, std::vector<int> map)
-{
-  NS_LOG_LOGIC (this << " rnti: " << rnti << " size " << size << " mcs " << mcs);
-  expectedTbs_t::iterator it;
-  it = m_expectedTbs.find (rnti);
-  if (it == m_expectedTbs.end ())
-    {
-      // insert new entry
-      tbInfo_t tbInfo = {size, mcs, map, false};
-      m_expectedTbs.insert (std::pair<uint16_t, tbInfo_t> (rnti,tbInfo ));
-    }
-  else
-    {
-      NS_FATAL_ERROR ("Expectd two TBs from the same UE");
-    }
-}
-
 
 bool
 LteSpectrumPhy::StartTx (Ptr<PacketBurst> pb)
@@ -412,6 +394,26 @@
     }
 }
 
+
+void
+LteSpectrumPhy::AddExpectedTb (uint16_t  rnti, uint16_t size, uint8_t mcs, std::vector<int> map)
+{
+  NS_LOG_LOGIC (this << " rnti: " << rnti << " size " << size << " mcs " << mcs);
+  expectedTbs_t::iterator it;
+  it = m_expectedTbs.find (rnti);
+  if (it == m_expectedTbs.end ())
+  {
+    // insert new entry
+    tbInfo_t tbInfo = {size, mcs, map, false};
+    m_expectedTbs.insert (std::pair<uint16_t, tbInfo_t> (rnti,tbInfo ));
+  }
+  else
+  {
+    NS_FATAL_ERROR ("Expectd two TBs from the same UE");
+  }
+}
+
+
 void
 LteSpectrumPhy::EndRx ()
 {
@@ -428,7 +430,7 @@
   expectedTbs_t::iterator itTb = m_expectedTbs.begin ();
   while (itTb!=m_expectedTbs.end ())
     {
-      NS_LOG_DEBUG (this << "RNTI " << (*itTb).first << " size " << (*itTb).second.size << " mcs " << (*itTb).second.mcs);
+      NS_LOG_DEBUG (this << "RNTI " << (*itTb).first << " size " << (*itTb).second.size << " mcs " << (uint32_t)(*itTb).second.mcs);
       itTb++;
     }
   m_expectedTbs.clear ();  // DEBUG
--- a/src/lte/model/lte-ue-phy.cc	Wed Nov 23 17:45:54 2011 +0100
+++ b/src/lte/model/lte-ue-phy.cc	Thu Nov 24 12:30:32 2011 +0100
@@ -435,6 +435,7 @@
         }
       
       // send TB info to LteSpectrumPhy
+      NS_LOG_DEBUG (this << " UE " << m_rnti << " DCI " << dci.m_rnti << " bimap "  << dci.m_rbBitmap);
       m_downlinkSpectrumPhy->AddExpectedTb (dci.m_rnti, dci.m_tbsSize.at (0), dci.m_mcs.at (0), dlRb);  // SISO mode
 
       SetSubChannelsForReception (dlRb);