Commit b2b01ac9 authored by wujing's avatar wujing

fix issue about round is 0 but sdu is null, it onlu occurs when frame 0 subframe 8 and subframe 9

parent 91832484
......@@ -36,7 +36,7 @@ extern uint16_t sf_ahead;
void add_sf(uint16_t *frameP, uint16_t *subframeP, int offset)
{
*frameP = *frameP + ((*subframeP + offset) / 10);
*frameP = (*frameP + ((*subframeP + offset) / 10))%1024;
*subframeP = ((*subframeP + offset) % 10);
}
......
......@@ -296,8 +296,6 @@ void fill_dci_and_dlsch(PHY_VARS_eNB *eNB,int frame,int subframe,L1_rxtx_proc_t
if ((dlsch0->harq_mask & (1<<rel8->harq_process)) > 0 ) {
if (rel8->new_data_indicator_1 != dlsch0_harq->ndi){
dlsch0_harq->round=0;
}else{
dlsch0_harq->round++;
}
}
else { // process is inactive, so activate and set round to 0
......
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