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
alex037yang
OpenXG-RAN
Commits
25a520e4
Commit
25a520e4
authored
Feb 11, 2021
by
kn.raju
Committed by
Robert Schmidt
Feb 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
find_SSB_and_RO_available()
parent
68b4a6bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+32
-0
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+2
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
25a520e4
...
...
@@ -151,6 +151,38 @@ void find_SSB_and_RO_available(module_id_t module_idP) {
uint8_t
num_active_ssb
=
0
;
uint8_t
max_association_period
=
1
;
struct
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB
*
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
=
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
;
switch
(
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
present
){
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_oneEighth
:
cc
->
cb_preambles_per_ssb
=
4
*
(
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
oneEighth
+
1
);
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_oneFourth
:
cc
->
cb_preambles_per_ssb
=
4
*
(
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
oneFourth
+
1
);
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_oneHalf
:
cc
->
cb_preambles_per_ssb
=
4
*
(
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
oneHalf
+
1
);
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_one
:
cc
->
cb_preambles_per_ssb
=
4
*
(
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
one
+
1
);
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_two
:
cc
->
cb_preambles_per_ssb
=
4
*
(
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
two
+
1
);
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_four
:
cc
->
cb_preambles_per_ssb
=
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
four
;
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_eight
:
cc
->
cb_preambles_per_ssb
=
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
eight
;
break
;
case
NR_RACH_ConfigCommon__ssb_perRACH_OccasionAndCB_PreamblesPerSSB_PR_sixteen
:
cc
->
cb_preambles_per_ssb
=
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
choice
.
sixteen
;
break
;
default:
AssertFatal
(
1
==
0
,
"Unsupported ssb_perRACH_config %d
\n
"
,
ssb_perRACH_OccasionAndCB_PreamblesPerSSB
->
present
);
break
;
}
if
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
msg1_SubcarrierSpacing
)
mu
=
*
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
msg1_SubcarrierSpacing
;
else
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
25a520e4
...
...
@@ -215,6 +215,8 @@ typedef struct {
uint8_t
max_association_period
;
//SSB index
uint8_t
ssb_index
[
MAX_NUM_OF_SSB
];
//CB preambles for each SSB
uint8_t
cb_preambles_per_ssb
;
}
NR_COMMON_channels_t
;
...
...
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