Commit c18281fa authored by Matthieu Kanj's avatar Matthieu Kanj

rvidx for repetitions

parent 68925645
...@@ -1804,10 +1804,17 @@ void decode_NPUSCH_msg_NB_IoT(PHY_VARS_eNB *eNB, ...@@ -1804,10 +1804,17 @@ void decode_NPUSCH_msg_NB_IoT(PHY_VARS_eNB *eNB,
///// if last sf of the word ///// if last sf of the word
ulsch_NB_IoT->counter_repetitions--; ulsch_NB_IoT->counter_repetitions--;
if(ulsch_NB_IoT->Msg3_flag == 1) if (npusch_format == 0) // rvidx is used for data and not used otherwise
{
if(ulsch_NB_IoT->Msg3_flag == 1) // case of msg3
{ {
ulsch_harq->rvidx = (ulsch_NB_IoT->counter_repetitions % 2)*2; // rvidx toogle for new code word ulsch_harq->rvidx = (ulsch_NB_IoT->counter_repetitions % 2)*2; // rvidx toogle for new code word
} // else {} for other npusch cases ??
} else { /// other NPUSCH cases
ulsch_harq->rvidx = (((ulsch_harq->rvidx / 2) ^ 1) * 2); // rvidx toogle for new code word
}
}
if( (ulsch_NB_IoT->counter_sf == 1) && (ulsch_NB_IoT->counter_repetitions == 0) ) if( (ulsch_NB_IoT->counter_sf == 1) && (ulsch_NB_IoT->counter_repetitions == 0) )
{ {
...@@ -1815,7 +1822,6 @@ void decode_NPUSCH_msg_NB_IoT(PHY_VARS_eNB *eNB, ...@@ -1815,7 +1822,6 @@ void decode_NPUSCH_msg_NB_IoT(PHY_VARS_eNB *eNB,
ulsch_NB_IoT->Msg3_flag = 0; ulsch_NB_IoT->Msg3_flag = 0;
} }
} }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////// generalization of RX procedures ////////////////////////////////////////// ////////////////////////////////////////////// generalization of RX procedures //////////////////////////////////////////
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment