Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
fabf7e59
Commit
fabf7e59
authored
Mar 07, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preventing crash caused by negative absolute slot RX value
parent
b99e8567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
executables/nr-gnb.c
executables/nr-gnb.c
+4
-1
No files found.
executables/nr-gnb.c
View file @
fabf7e59
...
...
@@ -117,7 +117,10 @@ static void tx_func(void *param)
int
slot_rx
=
info
->
slot_rx
;
int
absslot_tx
=
info
->
timestamp_tx
/
info
->
gNB
->
frame_parms
.
get_samples_per_slot
(
slot_tx
,
&
info
->
gNB
->
frame_parms
);
int
absslot_rx
=
absslot_tx
-
info
->
gNB
->
RU_list
[
0
]
->
sl_ahead
;
if
(
absslot_rx
<
0
)
{
LOG_W
(
NR_PHY
,
"Slot ahead %d is larger than absslot_tx %d. Cannot start TX yet.
\n
"
,
info
->
gNB
->
RU_list
[
0
]
->
sl_ahead
,
absslot_tx
);
return
;
}
LOG_D
(
NR_PHY
,
"%d.%d running tx_func
\n
"
,
frame_tx
,
slot_tx
);
PHY_VARS_gNB
*
gNB
=
info
->
gNB
;
module_id_t
module_id
=
gNB
->
Mod_id
;
...
...
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