error for ra-responsewindow exceeding 10ms instead of assertion (CI test with FAPI would fail otherwise)
This commit is contained in:
@@ -811,7 +811,9 @@ static void setup_ra_response_window(RA_config_t *ra,
|
|||||||
if (!response_window)
|
if (!response_window)
|
||||||
respwind_value = nr_get_RA_window_4Step(configGeneric->ra_ResponseWindow);
|
respwind_value = nr_get_RA_window_4Step(configGeneric->ra_ResponseWindow);
|
||||||
// The network configures a value lower than or equal to 10ms
|
// 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;
|
int ta_Common_slots = 0;
|
||||||
|
|||||||
@@ -1375,6 +1375,8 @@ static bool msg2_in_response_window(int rach_frame,
|
|||||||
int current_slot)
|
int current_slot)
|
||||||
{
|
{
|
||||||
int window_slots = get_response_window(rrc_ra_ResponseWindow);
|
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_rach = n_slots_frame * rach_frame + rach_slot;
|
||||||
int abs_now = n_slots_frame * current_frame + current_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);
|
int diff = (n_slots_frame * 1024 + abs_now - abs_rach) % (n_slots_frame * 1024);
|
||||||
|
|||||||
Reference in New Issue
Block a user