Added in init function in RRC_NSA_NRUE task creation

This commit is contained in:
Melissa Elkadi
2021-05-01 12:47:16 -07:00
parent 539b1b564a
commit 6cace48013
5 changed files with 12 additions and 3 deletions
+7 -2
View File
@@ -562,7 +562,10 @@ int stop_L1L2(module_id_t gnb_id) {
oai_exit = 0;
//free_transport(RC.gNB[gnb_id]);
phy_free_nr_gNB(RC.gNB[gnb_id]);
if (RC.gNB[gnb_id]) {
phy_free_nr_gNB(RC.gNB[gnb_id]);
RC.gNB[gnb_id] = NULL;
}
nr_phy_free_RU(RC.ru[gnb_id]);
@@ -880,8 +883,10 @@ if(!IS_SOFTMODEM_NOS1)
* threads have been stopped (they partially use the same memory) */
for (int inst = 0; inst < NB_gNB_INST; inst++) {
//free_transport(RC.gNB[inst]);
if (RC.gNB[inst])
if (RC.gNB[inst]) {
phy_free_nr_gNB(RC.gNB[inst]);
RC.gNB[inst] = NULL;
}
}
for (int inst = 0; inst < NB_RU; inst++) {
+1
View File
@@ -193,6 +193,7 @@ int create_tasks_nrue(uint32_t ue_nb) {
}
}
if (ue_nb > 0 && get_softmodem_params()->nsa == 1) {
init_connections_with_lte_ue();
if (itti_create_task (TASK_RRC_NSA_NRUE, recv_msgs_from_lte_ue, NULL) < 0) {
LOG_E(NR_RRC, "Create task for RRC NSA nr-UE failed\n");
return -1;