diff --git a/openair2/LAYER2/MAC/pre_processor.c b/openair2/LAYER2/MAC/pre_processor.c index ce09cb42b5b5dfc4885a70acccb773189f0bb95f..026cb0fa814b18f4270fde338c820c92593019fe 100644 --- a/openair2/LAYER2/MAC/pre_processor.c +++ b/openair2/LAYER2/MAC/pre_processor.c @@ -312,19 +312,18 @@ void sort_UEs (module_id_t Mod_idP, for(ii=UE_list->next[i]; ii>=0; ii=UE_list->next[ii]) { - rnti1 = UE_RNTI(Mod_idP,i); + UE_id1 = i; + rnti1 = UE_RNTI(Mod_idP,UE_id1); if(rnti1 == NOT_A_RNTI) continue; - - UE_id1 = i; pCC_id1 = UE_PCCID(Mod_idP,UE_id1); cqi1 = maxcqi(Mod_idP,UE_id1); // round1 = maxround(Mod_idP,rnti1,frameP,subframeP,0); - if(rnti2 == NOT_A_RNTI) - continue; UE_id2 = ii; rnti2 = UE_RNTI(Mod_idP,UE_id2); + if(rnti2 == NOT_A_RNTI) + continue; cqi2 = maxcqi(Mod_idP,UE_id2); round2 = maxround(Mod_idP,rnti2,frameP,subframeP,0); //mac_xface->get_ue_active_harq_pid(Mod_id,rnti2,subframe,&harq_pid2,&round2,0); pCC_id2 = UE_PCCID(Mod_idP,UE_id2); @@ -1126,26 +1125,24 @@ void sort_ue_ul (module_id_t module_idP,int frameP, sub_frame_t subframeP) for (i=UE_list->head_ul; i>=0; i=UE_list->next_ul[i]) { //LOG_I(MAC,"sort ue ul i %d\n",i); - - rnti1 = UE_RNTI(module_idP,i); - - if(rnti1 == NOT_A_RNTI) - continue; - - UE_id1 = i; - pCCid1 = UE_PCCID(module_idP,UE_id1); - round1 = maxround(module_idP,rnti1,frameP,subframeP,1); - for (ii=UE_list->next_ul[i]; ii>=0; ii=UE_list->next_ul[ii]) { - //LOG_I(MAC,"sort ul ue 2 ii %d\n",ii); + + UE_id1 = i; + rnti1 = UE_RNTI(module_idP,UE_id1); + + if(rnti1 == NOT_A_RNTI) + continue; - rnti2 = UE_RNTI(module_idP,ii); - + pCCid1 = UE_PCCID(module_idP,UE_id1); + round1 = maxround(module_idP,rnti1,frameP,subframeP,1); + + UE_id2 = ii; + rnti2 = UE_RNTI(module_idP,UE_id2); + if(rnti2 == NOT_A_RNTI) continue; - UE_id2 = ii; pCCid2 = UE_PCCID(module_idP,UE_id2); round2 = maxround(module_idP,rnti2,frameP,subframeP,1); diff --git a/openair2/UTIL/OTG/otg_tx.c b/openair2/UTIL/OTG/otg_tx.c index 52b30ea44bcf83791cde9b47ca7c2749d8029570..d6f6507644da87d76adac3f28ac9e5636fbd77a4 100644 --- a/openair2/UTIL/OTG/otg_tx.c +++ b/openair2/UTIL/OTG/otg_tx.c @@ -1827,12 +1827,14 @@ void init_predef_traffic( #endif break; - - default: + + case FULL_BUFFER: + LOG_E(OTG, "Full buffer is not yet supported\n"); + default: LOG_D(OTG, "[SRC %d][DST %d] Unknown traffic type\n", i, j); /* TO ADD: 3GPP TSG-RAN WG1 Meeting #71: Low-cost MTC Traffic Models and Characteristics */ - + } } }