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
2659dce8
Commit
2659dce8
authored
Jun 21, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing flag init_UL_tti_req_ahead
parent
045de837
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+1
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+6
-5
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+1
-1
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+0
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
2659dce8
...
...
@@ -68,8 +68,7 @@ void clear_nr_nfapi_information(gNB_MAC_INST * gNB,
NR_ServingCellConfigCommon_t
*
scc
=
gNB
->
common_channels
->
ServingCellConfigCommon
;
const
int
num_slots
=
nr_slots_per_frame
[
*
scc
->
ssbSubcarrierSpacing
];
if
(
gNB
->
init_UL_tti_req_ahead
==
false
)
UL_tti_req_ahead_initialization
(
gNB
,
scc
,
num_slots
);
UL_tti_req_ahead_initialization
(
gNB
,
scc
,
num_slots
,
CC_idP
);
nfapi_nr_dl_tti_request_t
*
DL_req
=
&
gNB
->
DL_req
[
0
];
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
pdcch
=
(
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
)
gNB
->
pdcch_pdu_idx
[
CC_idP
];
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
2659dce8
...
...
@@ -2995,18 +2995,19 @@ void schedule_nr_bwp_switch(module_id_t module_id,
}
}
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
)
{
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
,
int
CCid
)
{
gNB
->
UL_tti_req_ahead
[
0
]
=
calloc
(
n
,
sizeof
(
nfapi_nr_ul_tti_request_t
));
AssertFatal
(
gNB
->
UL_tti_req_ahead
[
0
],
if
(
gNB
->
UL_tti_req_ahead
[
CCid
])
return
;
gNB
->
UL_tti_req_ahead
[
CCid
]
=
calloc
(
n
,
sizeof
(
nfapi_nr_ul_tti_request_t
));
AssertFatal
(
gNB
->
UL_tti_req_ahead
[
CCid
],
"could not allocate memory for RC.nrmac[]->UL_tti_req_ahead[]
\n
"
);
/* fill in slot/frame numbers: slot is fixed, frame will be updated by scheduler
* consider that scheduler runs sl_ahead: the first sl_ahead slots are
* already "in the past" and thus we put frame 1 instead of 0! */
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
nfapi_nr_ul_tti_request_t
*
req
=
&
gNB
->
UL_tti_req_ahead
[
0
][
i
];
nfapi_nr_ul_tti_request_t
*
req
=
&
gNB
->
UL_tti_req_ahead
[
CCid
][
i
];
req
->
SFN
=
i
<
(
gNB
->
if_inst
->
sl_ahead
-
1
);
req
->
Slot
=
i
;
}
gNB
->
init_UL_tti_req_ahead
=
true
;
}
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
2659dce8
...
...
@@ -522,7 +522,7 @@ int get_mcs_from_bler(const NR_bler_options_t *bler_options,
int
max_mcs
,
frame_t
frame
);
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
);
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
,
int
CCid
);
void
nr_sr_reporting
(
gNB_MAC_INST
*
nrmac
,
frame_t
frameP
,
sub_frame_t
slotP
);
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
2659dce8
...
...
@@ -850,7 +850,6 @@ typedef struct gNB_MAC_INST_s {
uint8_t
harq_round_max
;
uint8_t
min_grant_prb
;
uint8_t
min_grant_mcs
;
bool
init_UL_tti_req_ahead
;
}
gNB_MAC_INST
;
#endif
/*__LAYER2_NR_MAC_GNB_H__ */
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