error for ra-responsewindow exceeding 10ms instead of assertion (CI test with FAPI would fail otherwise)

This commit is contained in:
francescomani
2025-03-12 10:30:18 +01:00
parent fc0d762407
commit 4b191b7d07
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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;
@@ -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);