mac_nr: only request first 2 SIBs from RRC

This commit is contained in:
Andre Puschmann 2021-07-14 09:42:27 +02:00
parent a142192d4e
commit 48e42f13a3
1 changed files with 5 additions and 1 deletions

View File

@ -82,12 +82,16 @@ int mac_nr::cell_cfg(srsenb::sched_interface::cell_cfg_t* cell_cfg)
cfg = *cell_cfg;
// read SIBs from RRC (SIB1 for now only)
for (int i = 0; i < srsenb::sched_interface::MAX_SIBS; i++) {
for (int i = 0; i < 1 /* srsenb::sched_interface::MAX_SIBS */; i++) {
if (cell_cfg->sibs->len > 0) {
sib_info_t sib = {};
sib.index = i;
sib.periodicity = cell_cfg->sibs->period_rf;
sib.payload = srsran::make_byte_buffer();
if (sib.payload == nullptr) {
logger.error("Couldn't allocate PDU in %s().", __FUNCTION__);
return SRSRAN_ERROR;
}
if (rrc->read_pdu_bcch_dlsch(sib.index, sib.payload) != SRSRAN_SUCCESS) {
logger.error("Couldn't read SIB %d from RRC", sib.index);
}