check admittedBearers upon handover
authorNicola Baldo <nbaldo@cttc.es>
Mon, 10 Dec 2012 11:42:07 +0100
changeset 9501 3c52c63f19fd
parent 9500 17e4bf873a93
child 9502 70b34ab48f6e
check admittedBearers upon handover
src/lte/model/lte-enb-rrc.cc
--- a/src/lte/model/lte-enb-rrc.cc	Fri Dec 07 19:57:21 2012 +0100
+++ b/src/lte/model/lte-enb-rrc.cc	Mon Dec 10 11:42:07 2012 +0100
@@ -475,7 +475,7 @@
   NS_LOG_FUNCTION (this);
   
   NS_ASSERT_MSG (params.notAdmittedBearers.empty (), "not admission of some bearers upon handover is not supported");
-  //  NS_ASSERT_MSG (params.admittedBearers.size () == m_drbMap.size (), "not enough bearers in admittedBearers");
+  NS_ASSERT_MSG (params.admittedBearers.size () == m_drbMap.size (), "not enough bearers in admittedBearers");
 
   // note: the Handover command from the target eNB to the source eNB
   // is expected to be sent transparently to the UE; however, here we
@@ -1353,9 +1353,9 @@
        ++it)
     {
       ueManager->SetupDataRadioBearer (it->erabLevelQosParameters, it->erabId, it->gtpTeid, it->transportLayerAddress);
-      // EpcX2Sap::ErabAdmittedItem i;
-      // i.erabId = it->erabId;
-      //ackParams.admittedBearers.push_back (i);
+      EpcX2Sap::ErabAdmittedItem i;
+      i.erabId = it->erabId;
+      ackParams.admittedBearers.push_back (i);
     }
 
   LteRrcSap::RrcConnectionReconfiguration handoverCommand = ueManager->GetRrcConnectionReconfigurationForHandover ();