Bug-fix: RrFfMacScheduler::DoSchedDlTriggerReq update check with rbgAllocatedNum

This commit is contained in:
Marco Miozzo
2013-04-22 18:10:27 +02:00
parent f032b50b75
commit e59ba1eb4e

View File

@@ -1114,6 +1114,7 @@ RrFfMacScheduler::DoSchedDlTriggerReq (const struct FfMacSchedSapProvider::Sched
NS_LOG_INFO ("\t " << rbgAllocated);
i++;
rbgMap.at (rbgAllocated) = true;
rbgAllocatedNum++;
}
rbgAllocated++;
}
@@ -1146,7 +1147,7 @@ RrFfMacScheduler::DoSchedDlTriggerReq (const struct FfMacSchedSapProvider::Sched
// ...more parameters -> ignored in this version
ret.m_buildDataList.push_back (newEl);
if (rbgAllocated == rbgNum)
if (rbgAllocatedNum == rbgNum)
{
m_nextRntiDl = (*it).m_rnti; // store last RNTI served
break; // no more RGB to be allocated