SRSUE: Set SCell configuration is unlocking (#1544)

master
Pedro Alvarez 5 years ago committed by GitHub
parent f662aeaff3
commit c686e6cea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -881,11 +881,18 @@ bool rrc::con_reconfig(rrc_conn_recfg_s* reconfig)
}
}
apply_scell_config(reconfig_r8);
rrc_conn_recfg_r8_ies_s reconfig_r8_ = *reconfig_r8;
task_sched.enqueue_background_task([this, reconfig_r8_](uint32_t worker_id) mutable {
// Apply configurations without blocking stack
apply_scell_config(&reconfig_r8_);
// notify back RRC
task_sched.defer_task([this, reconfig_r8_]() {
const rrc_conn_recfg_r8_ies_s* reconfig_r8 = &reconfig_r8_;
if (!measurements->parse_meas_config(
reconfig_r8, reestablishment_successful, connection_reest.get()->get_source_earfcn())) {
return false;
return;
}
send_rrc_con_reconfig_complete();
@ -899,9 +906,12 @@ bool rrc::con_reconfig(rrc_conn_recfg_s* reconfig)
nas->write_pdu(RB_ID_SRB1, std::move(nas_sdu));
} else {
rrc_log->error("Fatal Error: Couldn't allocate PDU in handle_rrc_con_reconfig().\n");
return false;
return;
}
}
});
});
return true;
}

@ -212,6 +212,7 @@ public:
dl_dcch_msg.msg.c1().rrc_conn_recfg().crit_exts.c1().rrc_conn_recfg_r8() = rrc_conn_recfg;
pdcptest->expecting_reconf_complete = true;
send_dcch_msg(dl_dcch_msg);
stack->task_sched.run_pending_tasks();
pdcptest->expecting_reconf_complete = false;
return !pdcptest->get_error() && pdcptest->received_reconf_complete;

Loading…
Cancel
Save