diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c index f13922d5fb..43ad09f45e 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c @@ -2887,15 +2887,17 @@ void nr_mac_update_timers(module_id_t module_id, const int current_bwp_id = sched_ctrl->active_bwp ? sched_ctrl->active_bwp->bwp_Id : 0; const int current_ubwp_id = sched_ctrl->active_ubwp ? sched_ctrl->active_ubwp->bwp_Id : 0; if (UE->Msg3_dcch_dtch) { - // Must use Initial Downlink BWP when there is RA with Msg3 through DCCH + // 3GPP TS 38.321 Section 5.15 Bandwidth Part (BWP) operation + // Currently there are no PRACH occasions configured for any Dedicated BWP, so UE will switch to the initialDownlinkBWP sched_ctrl->active_bwp = NULL; if (current_bwp_id != 0) { - LOG_I(NR_MAC, "Changing to Initial DL-BWP\n"); + LOG_I(NR_MAC, "(%d.%d) Switching to initialDownlinkBWP\n", frame, slot); } - // Must use Initial Uplink BWP when there is RA with Msg3 through DCCH + // 3GPP TS 38.321 Section 5.15 Bandwidth Part (BWP) operation + // Currently there are no PRACH occasions configured for any Dedicated BWP, so UE will switch to the initialUplinkBWP sched_ctrl->active_ubwp = NULL; if (current_ubwp_id != 0) { - LOG_I(NR_MAC, "Changing to Initial UL-BWP\n"); + LOG_I(NR_MAC, "(%d.%d) Switching to initialUplinkBWP\n", frame, slot); } UE->Msg3_dcch_dtch = false; } else if (spCellConfigDedicated && @@ -2904,11 +2906,11 @@ void nr_mac_update_timers(module_id_t module_id, spCellConfigDedicated->uplinkConfig->uplinkBWP_ToAddModList) { sched_ctrl->active_bwp = spCellConfigDedicated->downlinkBWP_ToAddModList->list.array[*spCellConfigDedicated->firstActiveDownlinkBWP_Id - 1]; if (*spCellConfigDedicated->firstActiveDownlinkBWP_Id != current_bwp_id) { - LOG_I(NR_MAC, "Changing to DL-BWP %li\n", sched_ctrl->active_bwp->bwp_Id); + LOG_I(NR_MAC, "(%d.%d) Switching to DL-BWP %li\n", frame, slot, sched_ctrl->active_bwp->bwp_Id); } sched_ctrl->active_ubwp = spCellConfigDedicated->uplinkConfig->uplinkBWP_ToAddModList->list.array[*spCellConfigDedicated->uplinkConfig->firstActiveUplinkBWP_Id - 1]; if (*spCellConfigDedicated->uplinkConfig->firstActiveUplinkBWP_Id != current_ubwp_id) { - LOG_I(NR_MAC, "Changing to UL-BWP %li\n", sched_ctrl->active_ubwp->bwp_Id); + LOG_I(NR_MAC, "(%d.%d) Switching to UL-BWP %li\n", frame, slot, sched_ctrl->active_ubwp->bwp_Id); } } diff --git a/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h b/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h index ad441a31ad..7658441aed 100644 --- a/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h +++ b/openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h @@ -716,8 +716,8 @@ typedef struct { int m; // UE selected beam index uint8_t UE_beam_index; - bool Msg4_ACKed; bool Msg3_dcch_dtch; + bool Msg4_ACKed; /// Sched CSI-RS: scheduling decisions NR_gNB_UCI_STATS_t uci_statS; float ul_thr_ue;