add assertion in rotation function

This commit is contained in:
francescomani
2023-06-20 11:43:41 +02:00
parent 1c3058e2d2
commit 7d08b0c06d
2 changed files with 4 additions and 2 deletions
+3
View File
@@ -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++) {
+1 -2
View File
@@ -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);