Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
c13d5c21
Commit
c13d5c21
authored
Mar 16, 2017
by
Florian Kaltenberger
Browse files
added null pointer check for ulsim
parent
bd3394f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair1/SCHED/phy_procedures_lte_ue.c
View file @
c13d5c21
...
...
@@ -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
];
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
,
subframe_tx
,
pucch_ack_payload
,
0
)
>
0
)
subframe_tx
,
pucch_ack_payload
,
0
)
>
0
)
)
{
is_sr_an_subframe
=
1
;
}
...
...
@@ -2261,12 +2261,14 @@ 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_ack
(
&
ue
->
frame_parms
,
ue
->
dlsch
[
proc
->
subframe_rx
&
0x1
][
eNB_id
][
0
]
->
harq_ack
,
subframe_tx
,
ue
->
ulsch
[
eNB_id
]
->
o_ACK
,
0
);
reset_ack
(
&
ue
->
frame_parms
,
if
(
ue
->
dlsch
[
proc
->
subframe_rx
&
0x1
][
eNB_id
][
0
]
!=
NULL
)
reset_ack
(
&
ue
->
frame_parms
,
ue
->
dlsch
[
proc
->
subframe_rx
&
0x1
][
eNB_id
][
0
]
->
harq_ack
,
subframe_tx
,
ue
->
ulsch
[
eNB_id
]
->
o_ACK
,
0
);
if
(
ue
->
dlsch_SI
[
eNB_id
]
!=
NULL
)
reset_ack
(
&
ue
->
frame_parms
,
ue
->
dlsch_SI
[
eNB_id
]
->
harq_ack
,
subframe_tx
,
ue
->
ulsch
[
eNB_id
]
->
o_ACK
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment