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
ca0cc079
Commit
ca0cc079
authored
Nov 24, 2025
by
francescomani
Committed by
Robert Schmidt
Dec 03, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid having negative BWP size if BWP start > BWP size
parent
98618a7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+4
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+2
-1
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
ca0cc079
...
@@ -398,7 +398,8 @@ bwp_info_t get_pdsch_bwp_start_size(gNB_MAC_INST *nr_mac, NR_UE_info_t *UE)
...
@@ -398,7 +398,8 @@ bwp_info_t get_pdsch_bwp_start_size(gNB_MAC_INST *nr_mac, NR_UE_info_t *UE)
// except for the case when DCI format 1_0 is decoded in any common search space in which case the size of CORESET 0 shall be
// except for the case when DCI format 1_0 is decoded in any common search space in which case the size of CORESET 0 shall be
// used if CORESET 0 is configured for the cell and the size of initial DL bandwidth part shall be used if CORESET 0 is not
// used if CORESET 0 is configured for the cell and the size of initial DL bandwidth part shall be used if CORESET 0 is not
// configured for the cell.
// configured for the cell.
if
(
dl_bwp
->
dci_format
==
NR_DL_DCI_FORMAT_1_0
&&
sched_ctrl
->
search_space
->
searchSpaceType
if
(
dl_bwp
->
dci_format
==
NR_DL_DCI_FORMAT_1_0
&&
sched_ctrl
->
search_space
->
searchSpaceType
&&
sched_ctrl
->
search_space
->
searchSpaceType
->
present
==
NR_SearchSpace__searchSpaceType_PR_common
)
{
&&
sched_ctrl
->
search_space
->
searchSpaceType
->
present
==
NR_SearchSpace__searchSpaceType_PR_common
)
{
if
(
sched_ctrl
->
coreset
->
controlResourceSetId
==
0
)
{
if
(
sched_ctrl
->
coreset
->
controlResourceSetId
==
0
)
{
bwp_info
.
bwpStart
=
nr_mac
->
cset0_bwp_start
;
bwp_info
.
bwpStart
=
nr_mac
->
cset0_bwp_start
;
...
@@ -406,9 +407,9 @@ bwp_info_t get_pdsch_bwp_start_size(gNB_MAC_INST *nr_mac, NR_UE_info_t *UE)
...
@@ -406,9 +407,9 @@ bwp_info_t get_pdsch_bwp_start_size(gNB_MAC_INST *nr_mac, NR_UE_info_t *UE)
bwp_info
.
bwpStart
=
dl_bwp
->
BWPStart
+
sched_ctrl
->
sched_pdcch
.
rb_start
;
bwp_info
.
bwpStart
=
dl_bwp
->
BWPStart
+
sched_ctrl
->
sched_pdcch
.
rb_start
;
}
}
if
(
nr_mac
->
cset0_bwp_size
>
0
)
{
if
(
nr_mac
->
cset0_bwp_size
>
0
)
{
bwp_info
.
bwpSize
=
min
(
dl_bwp
->
BWPSize
-
bwp_info
.
bwpStart
,
nr_mac
->
cset0_bwp_size
);
bwp_info
.
bwpSize
=
min
(
dl_bwp
->
BWPSize
,
nr_mac
->
cset0_bwp_size
);
}
else
{
}
else
{
bwp_info
.
bwpSize
=
min
(
dl_bwp
->
BWPSize
-
bwp_info
.
bwpStart
,
UE
->
sc_info
.
initial_dl_BWPSize
);
bwp_info
.
bwpSize
=
min
(
dl_bwp
->
BWPSize
,
UE
->
sc_info
.
initial_dl_BWPSize
);
}
}
}
else
{
}
else
{
bwp_info
.
bwpSize
=
dl_bwp
->
BWPSize
;
bwp_info
.
bwpSize
=
dl_bwp
->
BWPSize
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
ca0cc079
...
@@ -163,7 +163,8 @@ bwp_info_t get_pusch_bwp_start_size(NR_UE_info_t *UE)
...
@@ -163,7 +163,8 @@ bwp_info_t get_pusch_bwp_start_size(NR_UE_info_t *UE)
// contiguously allocated non-interleaved virtual resource blocks within the active bandwidth part of size PRBs except for the
// contiguously allocated non-interleaved virtual resource blocks within the active bandwidth part of size PRBs except for the
// case when DCI format 0_0 is decoded in any common search space in which case the size of the initial UL bandwidth part shall
// case when DCI format 0_0 is decoded in any common search space in which case the size of the initial UL bandwidth part shall
// be used.
// be used.
if
(
ul_bwp
->
dci_format
==
NR_UL_DCI_FORMAT_0_0
&&
sched_ctrl
->
search_space
->
searchSpaceType
if
(
ul_bwp
->
dci_format
==
NR_UL_DCI_FORMAT_0_0
&&
sched_ctrl
->
search_space
->
searchSpaceType
&&
sched_ctrl
->
search_space
->
searchSpaceType
->
present
==
NR_SearchSpace__searchSpaceType_PR_common
)
{
&&
sched_ctrl
->
search_space
->
searchSpaceType
->
present
==
NR_SearchSpace__searchSpaceType_PR_common
)
{
bwp_info
.
bwpSize
=
min
(
ul_bwp
->
BWPSize
,
UE
->
sc_info
.
initial_ul_BWPSize
);
bwp_info
.
bwpSize
=
min
(
ul_bwp
->
BWPSize
,
UE
->
sc_info
.
initial_ul_BWPSize
);
}
else
{
}
else
{
...
...
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