From c9b9accda5901496b20665c5acecc5e0e0c8e357 Mon Sep 17 00:00:00 2001 From: ismagom Date: Tue, 9 Jun 2015 12:56:37 +0200 Subject: [PATCH] Delayed precomputation of C-RNTI --- srsapps/ue/mac/src/mac.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srsapps/ue/mac/src/mac.cc b/srsapps/ue/mac/src/mac.cc index fc94e1a56..6112285ae 100644 --- a/srsapps/ue/mac/src/mac.cc +++ b/srsapps/ue/mac/src/mac.cc @@ -250,9 +250,11 @@ void mac::main_radio_loop() { } if (ra_procedure.is_successful() && phy_rnti != params_db.get_param(mac_params::RNTI_C) && params_db.get_param(mac_params::RNTI_C) > 0) { phy_rnti = params_db.get_param(mac_params::RNTI_C); + // This operation takes a while, do nothing for the rest 100 slots to re-align with PHY + for (int i=0;i<10;i++) { + tti = ttisync->wait(); + } Info("Setting PHY RNTI=%d\n", phy_rnti); - - // This operation takes a while, do nothing for the rest 100 slots to re-align with PHY phy_h->set_crnti(phy_rnti); for (int i=0;i<100;i++) { tti = ttisync->wait();