diff --git a/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c b/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c index 43114686d1..1c5be61884 100644 --- a/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c +++ b/openair2/LAYER2/NR_MAC_UE/nr_ra_procedures.c @@ -811,7 +811,9 @@ static void setup_ra_response_window(RA_config_t *ra, if (!response_window) respwind_value = nr_get_RA_window_4Step(configGeneric->ra_ResponseWindow); // The network configures a value lower than or equal to 10ms - AssertFatal(respwind_value != 0 && respwind_value <= slots_per_frame, "Invalid RAR response window value\n"); + AssertFatal(respwind_value != 0, "Invalid RAR response window value\n"); + if (respwind_value > slots_per_frame) + LOG_E(NR_MAC, "RA-ResponseWindow need to be configured to a value lower than or equal to 10 ms\n"); } int ta_Common_slots = 0; diff --git a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c index 9044927f34..a8feb18a29 100644 --- a/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c +++ b/openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c @@ -1375,6 +1375,8 @@ static bool msg2_in_response_window(int rach_frame, int current_slot) { int window_slots = get_response_window(rrc_ra_ResponseWindow); + if (window_slots > n_slots_frame) + LOG_E(NR_MAC, "RA-ResponseWindow need to be configured to a value lower than or equal to 10 ms\n"); int abs_rach = n_slots_frame * rach_frame + rach_slot; int abs_now = n_slots_frame * current_frame + current_slot; int diff = (n_slots_frame * 1024 + abs_now - abs_rach) % (n_slots_frame * 1024);