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
4b859a2e
Commit
4b859a2e
authored
Aug 26, 2024
by
Thomas Schlichter
Committed by
Robert Schmidt
Aug 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix sidelink UE issues found by sanitizer
parent
d47eb536
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
executables/nr-ue.c
executables/nr-ue.c
+2
-2
openair2/LAYER2/NR_MAC_UE/mac_defs_sl.h
openair2/LAYER2/NR_MAC_UE/mac_defs_sl.h
+1
-1
No files found.
executables/nr-ue.c
View file @
4b859a2e
...
...
@@ -802,7 +802,7 @@ void *UE_thread(void *arg)
bool
syncRunning
=
false
;
const
int
nb_slot_frame
=
fp
->
slots_per_frame
;
int
absolute_slot
=
0
,
decoded_frame_rx
=
INT_MAX
,
trashed_frames
=
0
;
int
absolute_slot
=
0
,
decoded_frame_rx
=
MAX_FRAME_NUMBER
-
1
,
trashed_frames
=
0
;
int
tx_wait_for_dlsch
[
NR_MAX_SLOTS_PER_FRAME
];
int
num_ind_fifo
=
nb_slot_frame
;
...
...
@@ -897,7 +897,7 @@ void *UE_thread(void *arg)
""
);
// we have the decoded frame index in the return of the synch process
// and we shifted above to the first slot of next frame
decoded_frame_rx
++
;
decoded_frame_rx
=
(
decoded_frame_rx
+
1
)
%
MAX_FRAME_NUMBER
;
// we do ++ first in the regular processing, so it will be begin of frame;
absolute_slot
=
decoded_frame_rx
*
nb_slot_frame
-
1
;
if
(
UE
->
sl_mode
==
2
)
{
...
...
openair2/LAYER2/NR_MAC_UE/mac_defs_sl.h
View file @
4b859a2e
...
...
@@ -120,9 +120,9 @@ typedef struct sl_bch_params {
//configured from RRC
//Parameters used to determine PSBCH slot
sl_ssb_timealloc_t
ssb_time_alloc
;
uint8_t
sl_mib
[
4
]
__attribute__
((
aligned
(
4
)));
uint16_t
slss_id
;
bool
status
;
uint8_t
sl_mib
[
4
];
//Parameters incremented by MAC PSBCH scheduler
//after every SSB txn/reception
...
...
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