Commit c06c4716 authored by Raymond Knopp's avatar Raymond Knopp

Fixed bug with ue->dlsch_rx_sldch memory allocation

parent c498cac9
......@@ -1060,9 +1060,9 @@ void init_lte_ue_transport(PHY_VARS_UE *ue,int abstraction_flag) {
//***/ Substituted the next line with the double for loop as harq_ids is a 2-dimension array now
//for (i=0;i<10;i++) ue->dlsch_sldch->harq_ids[i] = 0;
LTE_eNB_DLSCH_t *dlsch_sldch_tmp = &ue->dlsch_sldch;
//LTE_eNB_DLSCH_t *dlsch_sldch_tmp = &ue->dlsch_sldch;
for (i=0; i<20; i++)
dlsch_sldch_tmp->harq_ids[i/10][i%10] = 0;
ue->dlsch_sldch->harq_ids[i/10][i%10] = 0;
ue->dlsch_rx_slsch = new_ue_dlsch(1,4,NSOFT,1,MAX_TURBO_ITERATIONS,ue->frame_parms.N_RB_DL, abstraction_flag);
......@@ -1072,9 +1072,9 @@ void init_lte_ue_transport(PHY_VARS_UE *ue,int abstraction_flag) {
//Panos: Substituted the next line with the double for loop as harq_ids is a 2-dimension array now
//for (i=0;i<10;i++) ue->dlsch_slsch->harq_ids[i] = 0;
LTE_eNB_DLSCH_t *dlsch_slsch_tmp = &ue->dlsch_slsch;
//LTE_eNB_DLSCH_t *dlsch_slsch_tmp = &ue->dlsch_slsch;
for (i=0; i<20; i++)
dlsch_slsch_tmp->harq_ids[i/10][i%10] = 0;
ue->dlsch_slsch->harq_ids[i/10][i%10] = 0;
ue->slsch_txcnt = 0;
ue->slsch_errors = 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