|
|
@ -123,7 +123,11 @@ int enb_stack_lte::init(const stack_args_t& args_, const rrc_cfg_t& rrc_cfg_)
|
|
|
|
sync_task_queue = task_sched.make_task_queue(args.sync_queue_size);
|
|
|
|
sync_task_queue = task_sched.make_task_queue(args.sync_queue_size);
|
|
|
|
|
|
|
|
|
|
|
|
// Init all layers
|
|
|
|
// Init all layers
|
|
|
|
mac.init(args.mac, rrc_cfg.cell_list, phy, &rlc, &rrc, mac_log);
|
|
|
|
if (! mac.init(args.mac, rrc_cfg.cell_list, phy, &rlc, &rrc, mac_log))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
stack_logger.error("Couldn't initialize MAC");
|
|
|
|
|
|
|
|
return SRSLTE_ERROR;
|
|
|
|
|
|
|
|
}
|
|
|
|
rlc.init(&pdcp, &rrc, &mac, task_sched.get_timer_handler());
|
|
|
|
rlc.init(&pdcp, &rrc, &mac, task_sched.get_timer_handler());
|
|
|
|
pdcp.init(&rlc, &rrc, >pu);
|
|
|
|
pdcp.init(&rlc, &rrc, >pu);
|
|
|
|
rrc.init(rrc_cfg, phy, &mac, &rlc, &pdcp, &s1ap, >pu);
|
|
|
|
rrc.init(rrc_cfg, phy, &mac, &rlc, &pdcp, &s1ap, >pu);
|
|
|
|