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
zzha zzha
OpenXG-RAN
Commits
68b4a6bf
Commit
68b4a6bf
authored
Oct 23, 2020
by
kn.raju
Committed by
Robert Schmidt
Feb 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing association period
parent
054934c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+12
-9
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
68b4a6bf
...
...
@@ -181,25 +181,28 @@ void find_SSB_and_RO_available(module_id_t module_idP) {
}
}
for
(
int
i
=
1
;
(
1
<<
(
i
-
1
))
<=
max_association_period
;
i
++
)
{
cc
->
total_prach_occasions_per_config_period
=
total_RA_occasions
;
for
(
int
i
=
1
;
(
1
<<
(
i
-
1
))
<
max_association_period
;
i
++
)
{
cc
->
max_association_period
=
(
1
<<
(
i
-
1
));
total_RA_occasions
=
total_RA_occasions
*
cc
->
max_association_period
;
if
(
total_RA_occasions
>=
(
int
)
(
num_active_ssb
/
num_ssb_per_RO
))
{
repetition
=
(
uint16_t
)((
total_RA_occasions
*
num_ssb_per_RO
)
/
num_active_ssb
);
break
;
}
else
{
total_RA_occasions
=
total_RA_occasions
*
i
;
cc
->
max_association_period
=
i
;
}
}
if
(
cc
->
max_association_period
==
0
)
cc
->
max_association_period
=
1
;
unused_RA_occasion
=
total_RA_occasions
-
(
int
)((
num_active_ssb
*
repetition
)
/
num_ssb_per_RO
);
cc
->
total_prach_occasions
=
total_RA_occasions
-
unused_RA_occasion
;
cc
->
num_active_ssb
=
num_active_ssb
;
LOG_I
(
MAC
,
"Total available RO %d, num of active SSB %d: unused RO = %d max_association_period %u N_RA_sfn %u
\n
"
,
cc
->
total_prach_occasions
,
cc
->
num_active_ssb
,
unused_RA_occasion
,
max_association_period
,
N_RA_sfn
);
LOG_I
(
MAC
,
"Total available RO %d, num of active SSB %d: unused RO = %d association_period %u N_RA_sfn %u total_prach_occasions_per_config_period %u
\n
"
,
cc
->
total_prach_occasions
,
cc
->
num_active_ssb
,
unused_RA_occasion
,
cc
->
max_association_period
,
N_RA_sfn
,
cc
->
total_prach_occasions_per_config_period
);
}
void
schedule_nr_prach
(
module_id_t
module_idP
,
frame_t
frameP
,
sub_frame_t
slotP
)
...
...
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