Added custom frequency in cell parser

master
Xavier Arteaga 3 years ago committed by Xavier Arteaga
parent 5a6b8f42f5
commit 97db7f2d34

@ -828,6 +828,8 @@ static int parse_cell_list(all_args_t* args, rrc_cfg_t* rrc_cfg, Setting& root)
HANDLEPARSERCODE(parse_required_field(cell_cfg.pci, cellroot, "pci"));
cell_cfg.pci = cell_cfg.pci % SRSRAN_NUM_PCI;
HANDLEPARSERCODE(parse_required_field(cell_cfg.dl_earfcn, cellroot, "dl_earfcn"));
parse_required_field(cell_cfg.dl_freq_hz, cellroot, "dl_freq");
parse_required_field(cell_cfg.ul_freq_hz, cellroot, "ul_freq");
parse_default_field(cell_cfg.ul_earfcn, cellroot, "ul_earfcn", 0u); // will be derived from DL EARFCN If not set
parse_default_field(
cell_cfg.root_seq_idx, cellroot, "root_seq_idx", rrc_cfg->sibs[1].sib2().rr_cfg_common.prach_cfg.root_seq_idx);

Loading…
Cancel
Save