|
|
@ -710,19 +710,19 @@ void mac::tti_thread::run_tti(uint32_t tti) {
|
|
|
|
pthread_mutex_unlock(&parent->tti_threads_sync_tx[(tti+1)%parent->NOF_TTI_THREADS]);
|
|
|
|
pthread_mutex_unlock(&parent->tti_threads_sync_tx[(tti+1)%parent->NOF_TTI_THREADS]);
|
|
|
|
|
|
|
|
|
|
|
|
// Check if there is pending CCCH SDU in Multiplexing Unit
|
|
|
|
// Check if there is pending CCCH SDU in Multiplexing Unit
|
|
|
|
if (mux_unit.is_pending_ccch_sdu()) {
|
|
|
|
if (parent->mux_unit.is_pending_ccch_sdu()) {
|
|
|
|
// Start RA procedure
|
|
|
|
// Start RA procedure
|
|
|
|
if (!ra_procedure.in_progress() && !ra_procedure.is_successful()) {
|
|
|
|
if (!parent->ra_procedure.in_progress() && !parent->ra_procedure.is_successful()) {
|
|
|
|
ra_procedure.start_rlc_order();
|
|
|
|
parent->ra_procedure.start_rlc_order();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ra_procedure.is_successful() &&
|
|
|
|
if (parent->ra_procedure.is_successful() &&
|
|
|
|
phy_rnti != params_db.get_param(mac_params::RNTI_C) &&
|
|
|
|
parent->phy_rnti != parent->params_db.get_param(mac_params::RNTI_C) &&
|
|
|
|
params_db.get_param(mac_params::RNTI_C) > 0 &&
|
|
|
|
parent->params_db.get_param(mac_params::RNTI_C) > 0 &&
|
|
|
|
phy_h->get_param(srslte::ue::phy_params::SRS_IS_CONFIGURED) == 1)
|
|
|
|
parent->phy_h->get_param(srslte::ue::phy_params::SRS_IS_CONFIGURED) == 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
phy_rnti = params_db.get_param(mac_params::RNTI_C);
|
|
|
|
parent->phy_rnti = parent->params_db.get_param(mac_params::RNTI_C);
|
|
|
|
pregen_phy(phy_rnti);
|
|
|
|
parent->pregen_phy(parent->phy_rnti);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|