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
0d083d83
Commit
0d083d83
authored
Oct 29, 2025
by
Laurent THOMAS
Committed by
Robert Schmidt
Oct 30, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify code through lookup of PDU name, delete commented code
parent
80223d36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
33 deletions
+15
-33
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h
+4
-1
openair1/SCHED_NR/fapi_nr_l1.c
openair1/SCHED_NR/fapi_nr_l1.c
+11
-32
No files found.
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h
View file @
0d083d83
...
...
@@ -1481,7 +1481,10 @@ typedef enum {
NFAPI_NR_UL_CONFIG_PUCCH_PDU_TYPE
,
NFAPI_NR_UL_CONFIG_SRS_PDU_TYPE
,
}
nfapi_nr_ul_config_pdu_type_e
;
static
const
char
*
const
txt_nfapi_nr_ul_config_pdu_type
[]
=
{
"NFAPI_NR_UL_CONFIG_PRACH_PDU_TYPE"
,
"NFAPI_NR_UL_CONFIG_PUSCH_PDU_TYPE"
,
"NFAPI_NR_UL_CONFIG_PUCCH_PDU_TYPE"
,
"NFAPI_NR_UL_CONFIG_SRS_PDU_TYPE"
};
typedef
struct
{
uint16_t
pdu_type
;
//0: PRACH PDU, 1: PUSCH PDU, 2: PUCCH PDU, 3: SRS PDU
...
...
openair1/SCHED_NR/fapi_nr_l1.c
View file @
0d083d83
...
...
@@ -127,49 +127,28 @@ void nr_schedule_ul_tti_req(PHY_VARS_gNB *gNB, nfapi_nr_ul_tti_request_t *UL_tti
int
slot
=
UL_tti_req
->
Slot
;
for
(
int
i
=
0
;
i
<
UL_tti_req
->
n_pdus
;
i
++
)
{
switch
(
UL_tti_req
->
pdus_list
[
i
].
pdu_type
)
{
int
type
=
UL_tti_req
->
pdus_list
[
i
].
pdu_type
;
LOG_D
(
NR_PHY
,
"frame %d, slot %d got %s for %d.%d
\n
"
,
frame
,
slot
,
txt_nfapi_nr_ul_config_pdu_type
[
type
],
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
);
switch
(
type
)
{
case
NFAPI_NR_UL_CONFIG_PUSCH_PDU_TYPE
:
LOG_D
(
NR_PHY
,
"frame %d, slot %d, Got NFAPI_NR_UL_TTI_PUSCH_PDU_TYPE for %d.%d
\n
"
,
frame
,
slot
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
);
nr_fill_ulsch
(
gNB
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
,
&
UL_tti_req
->
pdus_list
[
i
].
pusch_pdu
);
break
;
case
NFAPI_NR_UL_CONFIG_PUCCH_PDU_TYPE
:
LOG_D
(
NR_PHY
,
"frame %d, slot %d, Got NFAPI_NR_UL_TTI_PUCCH_PDU_TYPE for %d.%d
\n
"
,
frame
,
slot
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
);
nr_fill_pucch
(
gNB
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
,
&
UL_tti_req
->
pdus_list
[
i
].
pucch_pdu
);
break
;
case
NFAPI_NR_UL_CONFIG_PRACH_PDU_TYPE
:
LOG_D
(
NR_PHY
,
"frame %d, slot %d, Got NFAPI_NR_UL_TTI_PRACH_PDU_TYPE for %d.%d
\n
"
,
frame
,
slot
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
);
case
NFAPI_NR_UL_CONFIG_PRACH_PDU_TYPE
:
{
nfapi_nr_prach_pdu_t
*
prach_pdu
=
&
UL_tti_req
->
pdus_list
[
i
].
prach_pdu
;
LOG_D
(
NR_PHY_RACH
,
"Add prach decoding request for %d.%d
\n
"
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
);
prach_item_t
*
prach
=
nr_schedule_rx_prach
(
gNB
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
,
prach_pdu
);
if
(
!
prach
)
LOG_W
(
NR_PHY_RACH
,
"Error in scheduling rach
\n
"
);
/* the present design is not supporting multiple gNB in one RU
if (prach && (gNB->RU_list[0]->if_south == LOCAL_RF || gNB->RU_list[0]->if_south == REMOTE_IF5))
nr_fill_prach_ru(gNB->RU_list[0], prach);
*/
break
;
}
break
;
case
NFAPI_NR_UL_CONFIG_SRS_PDU_TYPE
:
LOG_D
(
NR_PHY
,
"frame %d, slot %d, Got NFAPI_NR_UL_CONFIG_SRS_PDU_TYPE for %d.%d
\n
"
,
frame
,
slot
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
);
nr_fill_srs
(
gNB
,
UL_tti_req
->
SFN
,
UL_tti_req
->
Slot
,
&
UL_tti_req
->
pdus_list
[
i
].
srs_pdu
);
break
;
}
...
...
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