diff --git a/openair1/PHY/MODULATION/slot_fep_nr.c b/openair1/PHY/MODULATION/slot_fep_nr.c index 6a598582b0..c8ec74d61f 100644 --- a/openair1/PHY/MODULATION/slot_fep_nr.c +++ b/openair1/PHY/MODULATION/slot_fep_nr.c @@ -288,6 +288,9 @@ void apply_nr_rotation_RX(NR_DL_FRAME_PARMS *frame_parms, int first_symbol, int nsymb) { + AssertFatal(first_symbol + nsymb <= NR_NUMBER_OF_SYMBOLS_PER_SLOT, + "First symbol %d and number of symbol %d not compatible with number of symbols in a slot %d\n", + first_symbol, nsymb, NR_NUMBER_OF_SYMBOLS_PER_SLOT); int symb_offset = (slot % frame_parms->slots_per_subframe) * frame_parms->symbols_per_slot; for (int symbol = first_symbol; symbol < first_symbol + nsymb; symbol++) { diff --git a/openair1/SIMULATION/NR_PHY/ulsim.c b/openair1/SIMULATION/NR_PHY/ulsim.c index 41e80cc7d4..53c691afa3 100644 --- a/openair1/SIMULATION/NR_PHY/ulsim.c +++ b/openair1/SIMULATION/NR_PHY/ulsim.c @@ -1268,8 +1268,7 @@ int main(int argc, char **argv) gNB->frame_parms.N_RB_UL, offset, 0, - gNB->frame_parms.Ncp == EXTENDED ? 12 : 14, - link_type_ul); + gNB->frame_parms.Ncp == EXTENDED ? 12 : 14); } ul_proc_error = phy_procedures_gNB_uespec_RX(gNB, frame, slot);