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
3a4dac00
Commit
3a4dac00
authored
May 23, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_UE_fix_PUCCH_multiplexing' into integration_2024_w21b
parents
08200783
6fdb69a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+11
-13
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
3a4dac00
...
...
@@ -1852,10 +1852,17 @@ void order_resources(PUCCH_sched_t *pucch, int num_res)
}
}
bool
check_overlapping_resources
(
int
curr_start
,
int
curr_length
,
int
next_start
,
int
next_length
)
bool
check_overlapping_resources
(
PUCCH_sched_t
*
pucch
,
int
j
,
int
o
)
{
// assuming overlapping means if two resources overlaps in time,
// ie share a symbol in the slot regardless of PRB
NR_PUCCH_Resource_t
*
pucch_resource
=
pucch
[
j
-
o
].
pucch_resource
;
int
curr_start
,
curr_length
;
get_pucch_start_symbol_length
(
pucch_resource
,
&
curr_start
,
&
curr_length
);
pucch_resource
=
pucch
[
j
+
1
].
pucch_resource
;
int
next_start
,
next_length
;
get_pucch_start_symbol_length
(
pucch_resource
,
&
next_start
,
&
next_length
);
if
(
curr_start
==
next_start
)
return
true
;
if
(
curr_start
+
curr_length
-
1
<
next_start
)
...
...
@@ -2201,18 +2208,9 @@ void multiplex_pucch_resource(NR_UE_MAC_INST_t *mac, PUCCH_sched_t *pucch, int n
int
j
=
0
;
int
o
=
0
;
while
(
j
<=
num_res
-
1
)
{
if
(
j
<
num_res
-
1
)
{
NR_PUCCH_Resource_t
*
pucch_resource
=
pucch
[
j
-
o
].
pucch_resource
;
int
curr_start
,
curr_length
;
get_pucch_start_symbol_length
(
pucch_resource
,
&
curr_start
,
&
curr_length
);
pucch_resource
=
pucch
[
j
+
1
].
pucch_resource
;
int
next_start
,
next_length
;
get_pucch_start_symbol_length
(
pucch_resource
,
&
next_start
,
&
next_length
);
bool
overlap
=
check_overlapping_resources
(
curr_start
,
curr_length
,
next_start
,
next_length
);
if
(
overlap
)
{
o
++
;
j
++
;
}
if
((
j
<
num_res
-
1
)
&&
check_overlapping_resources
(
pucch
,
j
,
o
))
{
o
++
;
j
++
;
}
else
{
if
(
o
>
0
)
{
merge_resources
(
&
pucch
[
j
-
o
],
o
+
1
,
pucch_Config
);
...
...
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