avoid having negative BWP size if BWP start > BWP size
This commit is contained in:
committed by
Robert Schmidt
parent
98618a7dc8
commit
ca0cc079a6
@@ -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)
|
|||||||
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;
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user