Commit 52abf72c authored by Robert Schmidt's avatar Robert Schmidt

Merge remote-tracking branch 'origin/t-trace-nr-sib1' into integration_2023_w36

parents 378516bd 9cfa0f23
...@@ -274,6 +274,7 @@ void sr(void *_d, event e) ...@@ -274,6 +274,7 @@ void sr(void *_d, event e)
#define NR_NO_RNTI 0 #define NR_NO_RNTI 0
#define NR_RA_RNTI 2 #define NR_RA_RNTI 2
#define NR_C_RNTI 3 #define NR_C_RNTI 3
#define NR_SI_RNTI 4
void trace_nr(ev_data *d, int direction, int rnti_type, int rnti, void trace_nr(ev_data *d, int direction, int rnti_type, int rnti,
int frame, int slot, int harq_pid, void *buf, int bufsize, int frame, int slot, int harq_pid, void *buf, int bufsize,
...@@ -346,8 +347,17 @@ void nr_dl(void *_d, event e) ...@@ -346,8 +347,17 @@ void nr_dl(void *_d, event e)
{ {
ev_data *d = _d; ev_data *d = _d;
trace_nr(d, NR_DIRECTION_DOWNLINK, NR_C_RNTI, e.e[d->nr_dl_rnti].i, if (e.e[d->dl_rnti].i == 0xffff) {
e.e[d->nr_dl_frame].i, e.e[d->nr_dl_slot].i, if (d->no_sib) return;
if (d->max_sib && d->cur_sib == d->max_sib) return;
d->cur_sib++;
}
trace_nr(d, NR_DIRECTION_DOWNLINK,
e.e[d->dl_rnti].i != 0xffff ? NR_C_RNTI : NR_SI_RNTI,
e.e[d->nr_dl_rnti].i, e.e[d->nr_dl_frame].i, e.e[d->nr_dl_slot].i,
e.e[d->nr_dl_harq_pid].i, e.e[d->nr_dl_data].b, e.e[d->nr_dl_harq_pid].i, e.e[d->nr_dl_data].b,
e.e[d->nr_dl_data].bsize, NO_PREAMBLE); e.e[d->nr_dl_data].bsize, NO_PREAMBLE);
} }
......
...@@ -608,6 +608,10 @@ void schedule_nr_sib1(module_id_t module_idP, ...@@ -608,6 +608,10 @@ void schedule_nr_sib1(module_id_t module_idP,
TX_req->Slot = slotP; TX_req->Slot = slotP;
type0_PDCCH_CSS_config->active = false; type0_PDCCH_CSS_config->active = false;
T(T_GNB_MAC_DL_PDU_WITH_DATA, T_INT(module_idP), T_INT(CC_id),
T_INT(0xffff), T_INT(frameP), T_INT(slotP), T_INT(0 /* harq_pid */),
T_BUFFER(sib1_payload, TBS));
} }
} }
} }
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