From 60bc634386ee2f9f3400d84a22fa0655137119f9 Mon Sep 17 00:00:00 2001 From: Merlin Chlosta Date: Sat, 20 Jan 2018 13:30:56 +0100 Subject: [PATCH 1/2] Fix build if WRITE_SIB_PCAP is defined --- srsenb/src/mac/mac.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/mac/mac.cc b/srsenb/src/mac/mac.cc index 2488a6aa4..74130efaa 100644 --- a/srsenb/src/mac/mac.cc +++ b/srsenb/src/mac/mac.cc @@ -539,7 +539,7 @@ int mac::get_dl_sched(uint32_t tti, dl_sched_t *dl_sched_res) dl_sched_res->sched_grants[n].data[0] = assemble_si(sched_result.bc[i].index); #ifdef WRITE_SIB_PCAP if (pcap) { - pcap->write_dl_sirnti(dl_sched_res->sched_grants[n].data, sched_result.bc[i].tbs, true, tti); + pcap->write_dl_sirnti(dl_sched_res->sched_grants[n].data[0], sched_result.bc[i].tbs, true, tti); } #endif } else { From ed863e9d14645cdf98079c5900e4afc337f8d477 Mon Sep 17 00:00:00 2001 From: Merlin Chlosta Date: Sat, 20 Jan 2018 13:57:23 +0100 Subject: [PATCH 2/2] Fix SIB config issue #134 and add comments Correct off-by-one in memcpy of other SIBs --- srsenb/src/mac/scheduler.cc | 2 -- srsenb/src/upper/rrc.cc | 61 ++++++++++++++++++++++--------------- 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/srsenb/src/mac/scheduler.cc b/srsenb/src/mac/scheduler.cc index 09f006236..9ba288e82 100644 --- a/srsenb/src/mac/scheduler.cc +++ b/srsenb/src/mac/scheduler.cc @@ -434,8 +434,6 @@ void sched::tpc_dec(uint16_t rnti) // Schedules Broadcast messages (SIB) int sched::dl_sched_bc(dl_sched_bc_t bc[MAX_BC_LIST]) { - // TODO: Enable multipe SIBs per SI - int nof_bc_elems = 0; for (int i=0;i