Commit c13d5c21 authored by Florian Kaltenberger's avatar Florian Kaltenberger

added null pointer check for ulsim

parent bd3394f5
...@@ -641,9 +641,9 @@ void ue_compute_srs_occasion(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id ...@@ -641,9 +641,9 @@ void ue_compute_srs_occasion(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id
} }
uint8_t pucch_ack_payload[2]; uint8_t pucch_ack_payload[2];
if (get_ack(&ue->frame_parms, if ((ue->dlsch[proc->subframe_rx&0x1][eNB_id][0]->harq_ack) && (get_ack(&ue->frame_parms,
ue->dlsch[proc->subframe_rx&0x1][eNB_id][0]->harq_ack, ue->dlsch[proc->subframe_rx&0x1][eNB_id][0]->harq_ack,
subframe_tx,pucch_ack_payload,0) > 0) subframe_tx,pucch_ack_payload,0) > 0))
{ {
is_sr_an_subframe = 1; is_sr_an_subframe = 1;
} }
...@@ -2261,11 +2261,13 @@ void phy_procedures_UE_TX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,ui ...@@ -2261,11 +2261,13 @@ void phy_procedures_UE_TX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,ui
} }
// reset DL ACK/NACK status // reset DL ACK/NACK status
if (ue->dlsch[proc->subframe_rx&0x1][eNB_id][0] != NULL)
reset_ack(&ue->frame_parms, reset_ack(&ue->frame_parms,
ue->dlsch[proc->subframe_rx&0x1][eNB_id][0]->harq_ack, ue->dlsch[proc->subframe_rx&0x1][eNB_id][0]->harq_ack,
subframe_tx, subframe_tx,
ue->ulsch[eNB_id]->o_ACK,0); ue->ulsch[eNB_id]->o_ACK,0);
if (ue->dlsch_SI[eNB_id] != NULL)
reset_ack(&ue->frame_parms, reset_ack(&ue->frame_parms,
ue->dlsch_SI[eNB_id]->harq_ack, ue->dlsch_SI[eNB_id]->harq_ack,
subframe_tx, subframe_tx,
......
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