gNB: fix scheduling of rel-17 SIBs

This commit is contained in:
Thomas Schlichter
2025-08-01 16:00:12 +02:00
parent b763692792
commit bbf4cd4a90
@@ -775,7 +775,7 @@ static bool test_other_sib_sched_occasion(int window_pos,
int rel_frame,
int rel_slot)
{
int x = window_pos * window_len;
int x = (window_pos - 1) * window_len;
int T = 8 << period;
int test_frame = (frame - rel_frame) % MAX_FRAME_NUMBER;
int si_slot = (x % n_slots_frame) + rel_slot;
@@ -848,7 +848,7 @@ void schedule_nr_other_sib(module_id_t module_idP,
for (int ssb = 0; ssb < num_ssb; ssb++) {
for (int i = 0; i < schedInfo->schedulingInfoList.list.count; i++) {
NR_SchedulingInfo_t *schedulingInfo = schedInfo->schedulingInfoList.list.array[i];
if (test_other_sib_sched_occasion(i,
if (test_other_sib_sched_occasion(i + 1,
window_length_sl,
schedulingInfo->si_Periodicity,
n_slots_frame,