From e2ffbd85bc689e24c557b88c74249c5d9966babc Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 7 Oct 2021 17:08:01 +0200 Subject: [PATCH] enb,rrc: add SIB2 field to display 5G logo ;-) --- srsenb/src/stack/rrc/rrc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srsenb/src/stack/rrc/rrc.cc b/srsenb/src/stack/rrc/rrc.cc index 283e76a3b..9e478f8ca 100644 --- a/srsenb/src/stack/rrc/rrc.cc +++ b/srsenb/src/stack/rrc/rrc.cc @@ -79,6 +79,14 @@ int32_t rrc::init(const rrc_cfg_t& cfg_, // Loads the PRACH root sequence cfg.sibs[1].sib2().rr_cfg_common.prach_cfg.root_seq_idx = cfg.cell_list[0].root_seq_idx; + if (cfg.num_nr_cells > 0) { + cfg.sibs[1].sib2().ext = true; + cfg.sibs[1].sib2().plmn_info_list_r15.set_present(); + cfg.sibs[1].sib2().plmn_info_list_r15.get()->resize(1); + auto& plmn = cfg.sibs[1].sib2().plmn_info_list_r15.get()->back(); + plmn.upper_layer_ind_r15_present = true; + } + if (generate_sibs() != SRSRAN_SUCCESS) { logger.error("Couldn't generate SIBs."); return false;