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
Michael Black
OpenXG-RAN
Commits
cdb6beab
Commit
cdb6beab
authored
Feb 14, 2023
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve RNTI selection to use all the specified values (0x0001-0xfff2)
parent
c8aceea4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+3
-2
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
cdb6beab
...
@@ -626,11 +626,12 @@ void nr_initiate_ra_proc(module_id_t module_idP,
...
@@ -626,11 +626,12 @@ void nr_initiate_ra_proc(module_id_t module_idP,
int
loop
=
0
;
int
loop
=
0
;
if
(
ra
->
rnti
==
0
)
{
// This condition allows for the usage of a preconfigured rnti for the CFRA
if
(
ra
->
rnti
==
0
)
{
// This condition allows for the usage of a preconfigured rnti for the CFRA
do
{
do
{
ra
->
rnti
=
(
taus
()
%
65518
)
+
1
;
// 3GPP TS 38.321 Section 7.1 Table 7.1-1: RNTI values
ra
->
rnti
=
(
taus
()
%
0xfff2
)
+
1
;
loop
++
;
loop
++
;
}
while
(
loop
!=
100
}
while
(
loop
!=
100
&&
!
((
find_nr_UE
(
&
nr_mac
->
UE_info
,
ra
->
rnti
)
==
NULL
)
&&
(
find_nr_RA_id
(
module_idP
,
CC_id
,
ra
->
rnti
)
==
-
1
)
&&
!
((
find_nr_UE
(
&
nr_mac
->
UE_info
,
ra
->
rnti
)
==
NULL
)
&&
(
find_nr_RA_id
(
module_idP
,
CC_id
,
ra
->
rnti
)
==
-
1
)
&&
ra
->
rnti
>=
1
&&
ra
->
rnti
<=
65519
));
&&
ra
->
rnti
>=
1
&&
ra
->
rnti
<=
0xfff2
));
if
(
loop
==
100
)
{
if
(
loop
==
100
)
{
LOG_E
(
NR_MAC
,
"%s:%d:%s: [RAPROC] initialisation random access aborted
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
LOG_E
(
NR_MAC
,
"%s:%d:%s: [RAPROC] initialisation random access aborted
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
abort
();
abort
();
...
...
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