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
lizhongxiao
OpenXG-RAN
Commits
675ebb1f
Commit
675ebb1f
authored
Dec 27, 2022
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt to fix issues when starting with SFN > 0
parent
ad6c2505
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
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
+2
-2
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+1
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
675ebb1f
...
@@ -69,7 +69,7 @@ void clear_nr_nfapi_information(gNB_MAC_INST * gNB,
...
@@ -69,7 +69,7 @@ void clear_nr_nfapi_information(gNB_MAC_INST * gNB,
NR_ServingCellConfigCommon_t
*
scc
=
gNB
->
common_channels
->
ServingCellConfigCommon
;
NR_ServingCellConfigCommon_t
*
scc
=
gNB
->
common_channels
->
ServingCellConfigCommon
;
const
int
num_slots
=
nr_slots_per_frame
[
*
scc
->
ssbSubcarrierSpacing
];
const
int
num_slots
=
nr_slots_per_frame
[
*
scc
->
ssbSubcarrierSpacing
];
UL_tti_req_ahead_initialization
(
gNB
,
scc
,
num_slots
,
CC_idP
);
UL_tti_req_ahead_initialization
(
gNB
,
scc
,
num_slots
,
CC_idP
,
frameP
);
nfapi_nr_dl_tti_request_t
*
DL_req
=
&
gNB
->
DL_req
[
0
];
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
];
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
pdcch
=
(
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
**
)
gNB
->
pdcch_pdu_idx
[
CC_idP
];
...
@@ -178,7 +178,6 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
...
@@ -178,7 +178,6 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
}
}
}
}
if
((
slot
==
0
)
&&
(
frame
&
127
)
==
0
)
{
if
((
slot
==
0
)
&&
(
frame
&
127
)
==
0
)
{
char
stats_output
[
16000
]
=
{
0
};
char
stats_output
[
16000
]
=
{
0
};
dump_mac_stats
(
RC
.
nrmac
[
module_idP
],
stats_output
,
sizeof
(
stats_output
),
true
);
dump_mac_stats
(
RC
.
nrmac
[
module_idP
],
stats_output
,
sizeof
(
stats_output
),
true
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
675ebb1f
...
@@ -3087,7 +3087,7 @@ void schedule_nr_bwp_switch(module_id_t module_id,
...
@@ -3087,7 +3087,7 @@ 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
,
int
CCid
)
{
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
,
int
CCid
,
frame_t
frameP
)
{
if
(
gNB
->
UL_tti_req_ahead
[
CCid
])
return
;
if
(
gNB
->
UL_tti_req_ahead
[
CCid
])
return
;
...
@@ -3099,7 +3099,7 @@ void UL_tti_req_ahead_initialization(gNB_MAC_INST * gNB, NR_ServingCellConfigCom
...
@@ -3099,7 +3099,7 @@ void UL_tti_req_ahead_initialization(gNB_MAC_INST * gNB, NR_ServingCellConfigCom
* already "in the past" and thus we put frame 1 instead of 0! */
* already "in the past" and thus we put frame 1 instead of 0! */
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
for
(
int
i
=
0
;
i
<
n
;
++
i
)
{
nfapi_nr_ul_tti_request_t
*
req
=
&
gNB
->
UL_tti_req_ahead
[
CCid
][
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
->
SFN
=
frameP
+
(
i
<
(
gNB
->
if_inst
->
sl_ahead
-
1
)
);
req
->
Slot
=
i
;
req
->
Slot
=
i
;
}
}
}
}
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
675ebb1f
...
@@ -504,7 +504,7 @@ int get_mcs_from_bler(const NR_bler_options_t *bler_options,
...
@@ -504,7 +504,7 @@ int get_mcs_from_bler(const NR_bler_options_t *bler_options,
int
max_mcs
,
int
max_mcs
,
frame_t
frame
);
frame_t
frame
);
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
,
int
CCid
);
void
UL_tti_req_ahead_initialization
(
gNB_MAC_INST
*
gNB
,
NR_ServingCellConfigCommon_t
*
scc
,
int
n
,
int
CCid
,
frame_t
frameP
);
void
nr_sr_reporting
(
gNB_MAC_INST
*
nrmac
,
frame_t
frameP
,
sub_frame_t
slotP
);
void
nr_sr_reporting
(
gNB_MAC_INST
*
nrmac
,
frame_t
frameP
,
sub_frame_t
slotP
);
...
...
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