From 1e374fdf60d54dcc1bbcd6f85fccae48bd617513 Mon Sep 17 00:00:00 2001 From: Louis Adrien Dufrene Date: Mon, 25 Feb 2019 10:21:47 +0100 Subject: [PATCH] Add some debug in eNB_scheduler_primitives to test --- .../LAYER2/MAC/eNB_scheduler_primitives.c | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/openair2/LAYER2/MAC/eNB_scheduler_primitives.c b/openair2/LAYER2/MAC/eNB_scheduler_primitives.c index 219b288fd3..29a69eb18d 100644 --- a/openair2/LAYER2/MAC/eNB_scheduler_primitives.c +++ b/openair2/LAYER2/MAC/eNB_scheduler_primitives.c @@ -1950,9 +1950,18 @@ find_UE_id(module_id_t mod_idP, UE_list_t *UE_list = &RC.mac[mod_idP]->UE_list; for (UE_id = 0; UE_id < MAX_MOBILES_PER_ENB; UE_id++) { + + LOG_E(MAC, "in find_UE_id(): for UE_id = %d\n", UE_id); + if (UE_list->active[UE_id] == TRUE) { - if (UE_list->UE_template[UE_PCCID(mod_idP, - UE_id)][UE_id].rnti == rntiP) { + + LOG_E(MAC, "in find_UE_id(): UE_list->active[UE_id]\n"); + LOG_E(MAC, "in find_UE_id(): UE_PCCID(mod_idP, UE_id) = %d ; UE_template.rnti = %d ; rntiP = %d\n", + UE_PCCID(mod_idP, UE_id), + UE_list->UE_template[UE_PCCID(mod_idP, UE_id)][UE_id].rnti, + rntiP); + + if (UE_list->UE_template[UE_PCCID(mod_idP, UE_id)][UE_id].rnti == rntiP) { return UE_id; } } @@ -2135,9 +2144,14 @@ add_new_ue(module_id_t mod_idP, dump_ue_list(UE_list, 0); for (i = 0; i < MAX_MOBILES_PER_ENB; i++) { + + LOG_E(MAC, "In add_new_ue() UE_id = %d\n", i); + if (UE_list->active[i] == TRUE) continue; + LOG_E(MAC, "In add_new_ue() Not active\n"); + UE_id = i; memset(&UE_list->UE_template[cc_idP][UE_id], 0, sizeof(UE_TEMPLATE)); @@ -2151,6 +2165,8 @@ add_new_ue(module_id_t mod_idP, UE_list->num_UEs++; UE_list->active[UE_id] = TRUE; + LOG_E(MAC, "In add_new_ue() rnti = %d for CC_id = %d\n", rntiP, cc_idP); + #if defined(USRP_REC_PLAY) // not specific to record/playback ? UE_list->UE_template[cc_idP][UE_id].pre_assigned_mcs_ul = 0; #endif