lte: Check the RandomAccess status of an RNTI to whom the preamble was assigned

Thanks to Menglei Zhang
Fixes #285 see MR !556
This commit is contained in:
ZorazeAli
2021-02-23 14:45:45 +01:00
parent e513cc8f6a
commit 8137af04f0

View File

@@ -996,7 +996,7 @@ LteEnbMac::DoAllocateNcRaPreamble (uint16_t rnti)
*/
if ((it != m_allocatedNcRaPreambleMap.end ()) && (it->second.expiryTime < Simulator::Now ()))
{
if (!m_cmacSapUser->IsRandomAccessCompleted (rnti))
if (!m_cmacSapUser->IsRandomAccessCompleted (it->second.rnti))
{
//random access of the UE is not completed,
//check other preambles