From 787249fe8a3fe08a4e431c6e2bab71eca8a8c085 Mon Sep 17 00:00:00 2001 From: Raymond Knopp Date: Sat, 20 Aug 2022 19:20:50 +0200 Subject: [PATCH] fix for L2 emulator test --- executables/nr-gnb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executables/nr-gnb.c b/executables/nr-gnb.c index d392efa8e9..e8c20dc747 100644 --- a/executables/nr-gnb.c +++ b/executables/nr-gnb.c @@ -487,7 +487,8 @@ void init_gNB_Tpool(int inst) { threadCreate(&proc->L1_stats_thread,nrL1_stats_thread,(void*)gNB,"L1_stats",-1,OAI_PRIORITY_RT_LOW); LOG_I(PHY,"Creating thread for TX reordering and dispatching to RU\n"); - threadCreate(&proc->pthread_tx_reorder, tx_reorder_thread, (void *)gNB, "thread_tx_reorder", gNB->RU_list[0]->tpcores[1], OAI_PRIORITY_RT_MAX); + threadCreate(&proc->pthread_tx_reorder, tx_reorder_thread, (void *)gNB, "thread_tx_reorder", + gNB->RU_list[0] ? gNB->RU_list[0]->tpcores[1] : -1, OAI_PRIORITY_RT_MAX); }