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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
b99837a0
Commit
b99837a0
authored
Mar 19, 2024
by
Robert Schmidt
Committed by
sagar arora
May 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor former find_nr_RA_id() to static function
parent
b1a29855
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+11
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+0
-14
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+0
-2
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
b99837a0
...
...
@@ -575,6 +575,16 @@ static NR_RA_t *find_free_nr_RA(NR_RA_t *ra_base, int ra_count, uint16_t preambl
return
NULL
;
}
static
const
NR_RA_t
*
find_nr_RA_rnti
(
const
NR_RA_t
*
ra_base
,
int
ra_count
,
rnti_t
rnti
)
{
for
(
int
i
=
0
;
i
<
ra_count
;
++
i
)
{
const
NR_RA_t
*
ra
=
&
ra_base
[
i
];
if
(
ra
->
ra_state
!=
nrRA_gNB_IDLE
&&
ra
->
rnti
==
rnti
)
return
ra
;
}
return
NULL
;
}
void
nr_initiate_ra_proc
(
module_id_t
module_idP
,
int
CC_id
,
frame_t
frameP
,
...
...
@@ -608,7 +618,7 @@ void nr_initiate_ra_proc(module_id_t module_idP,
while
(
trial
<
1
||
trial
>
0xffef
)
trial
=
(
taus
()
%
0xffef
)
+
1
;
exist_connected_ue
=
find_nr_UE
(
&
nr_mac
->
UE_info
,
trial
)
!=
NULL
;
exist_in_pending_ra_ue
=
find_nr_RA_
id
(
module_idP
,
CC_id
,
trial
)
!=
-
1
;
exist_in_pending_ra_ue
=
find_nr_RA_
rnti
(
cc
->
ra
,
sizeofArray
(
cc
->
ra
),
ra
->
rnti
)
!=
NULL
;
loop
++
;
}
while
(
loop
<
100
&&
(
exist_connected_ue
||
exist_in_pending_ra_ue
)
);
if
(
loop
==
100
)
{
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
b99837a0
...
...
@@ -2071,20 +2071,6 @@ NR_UE_info_t *find_nr_UE(NR_UEs_t *UEs, rnti_t rntiP)
return
NULL
;
}
int
find_nr_RA_id
(
module_id_t
mod_idP
,
int
CC_idP
,
rnti_t
rntiP
)
{
NR_RA_t
*
ra
=
RC
.
nrmac
[
mod_idP
]
->
common_channels
[
CC_idP
].
ra
;
for
(
int
RA_id
=
0
;
RA_id
<
NR_NB_RA_PROC_MAX
;
RA_id
++
)
{
LOG_D
(
NR_MAC
,
"Checking RA_id %d for %x : state %s
\n
"
,
RA_id
,
rntiP
,
nrra_text
[
ra
[
RA_id
].
ra_state
]);
if
(
ra
[
RA_id
].
ra_state
!=
nrRA_gNB_IDLE
&&
ra
[
RA_id
].
rnti
==
rntiP
)
return
RA_id
;
}
return
-
1
;
}
int
get_nrofHARQ_ProcessesForPDSCH
(
e_NR_PDSCH_ServingCellConfig__nrofHARQ_ProcessesForPDSCH
n
)
{
switch
(
n
)
{
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
b99837a0
...
...
@@ -302,8 +302,6 @@ void remove_front_nr_list(NR_list_t *listP);
NR_UE_info_t
*
find_nr_UE
(
NR_UEs_t
*
UEs
,
rnti_t
rntiP
);
int
find_nr_RA_id
(
module_id_t
mod_idP
,
int
CC_idP
,
rnti_t
rntiP
);
void
configure_UE_BWP
(
gNB_MAC_INST
*
nr_mac
,
NR_ServingCellConfigCommon_t
*
scc
,
NR_UE_sched_ctrl_t
*
sched_ctrl
,
...
...
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