|
|
| 1042 |
Ptr<RarLteControlMessage> rarMsg = Create<RarLteControlMessage> (); |
1042 |
Ptr<RarLteControlMessage> rarMsg = Create<RarLteControlMessage> (); |
| 1043 |
// see TS 36.321 5.1.4; preambles were sent two frames ago |
1043 |
// see TS 36.321 5.1.4; preambles were sent two frames ago |
| 1044 |
// (plus 3GPP counts subframes from 0, not 1) |
1044 |
// (plus 3GPP counts subframes from 0, not 1) |
| 1045 |
uint16_t raRnti = m_subframeNo - 3; |
1045 |
uint16_t raRnti; |
|
|
1046 |
if (m_subframeNo < 3) |
| 1047 |
{ |
| 1048 |
raRnti = m_subframeNo + 7; // equivalent to +10-3 |
| 1049 |
} |
| 1050 |
else |
| 1051 |
{ |
| 1052 |
raRnti = m_subframeNo - 3; |
| 1053 |
} |
| 1046 |
rarMsg->SetRaRnti (raRnti); |
1054 |
rarMsg->SetRaRnti (raRnti); |
|
|
1055 |
|
| 1047 |
for (unsigned int i = 0; i < ind.m_buildRarList.size (); i++) |
1056 |
for (unsigned int i = 0; i < ind.m_buildRarList.size (); i++) |
| 1048 |
{ |
1057 |
{ |
| 1049 |
std::map <uint8_t, uint32_t>::iterator itRapId = m_rapIdRntiMap.find (ind.m_buildRarList.at (i).m_rnti); |
1058 |
std::map <uint8_t, uint32_t>::iterator itRapId = m_rapIdRntiMap.find (ind.m_buildRarList.at (i).m_rnti); |