Commit ce12e827 authored by Melissa Elkadi's avatar Melissa Elkadi

Code clean up

parent 13401a5f
...@@ -1335,14 +1335,12 @@ void set_harq_status(NR_UE_MAC_INST_t *mac, ...@@ -1335,14 +1335,12 @@ void set_harq_status(NR_UE_MAC_INST_t *mac,
current_harq->dl_frame = frame; current_harq->dl_frame = frame;
current_harq->dl_slot = slot; current_harq->dl_slot = slot;
if (get_softmodem_params()->emulate_l1) { if (get_softmodem_params()->emulate_l1) {
uint8_t scs = get_softmodem_params()->numerology; int scs = get_softmodem_params()->numerology;
int slots_per_frame = nr_slots_per_frame[scs]; int slots_per_frame = nr_slots_per_frame[scs];
if (data_toul_fb + slot >= slots_per_frame) { slot += data_toul_fb;
if (slot >= slots_per_frame) {
frame = (frame + 1) % 1024; frame = (frame + 1) % 1024;
slot = (data_toul_fb + slot) - slots_per_frame; slot %= slots_per_frame;
}
else {
slot = data_toul_fb + slot;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment