From 50bf5713476bb3f3b776389da2f3b1cbf8c6d3f0 Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Thu, 30 Mar 2023 12:57:10 +0200 Subject: [PATCH] hack: see "Bye." message when quitting gnb running with aw2s For some (unclear) reason, nr-softmodem with aw2s device does not print "Bye." when stopping it with control+c, which is problematic in the CI. This little hack solves the problem. (Maybe not the right solution, to be changed if needed.) --- executables/nr-ru.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/executables/nr-ru.c b/executables/nr-ru.c index 6c527defca..6a2b6e7e9f 100644 --- a/executables/nr-ru.c +++ b/executables/nr-ru.c @@ -328,7 +328,9 @@ void fh_if5_south_in(RU_t *ru, if (proc->first_rx == 0) { if (proc->tti_rx != *tti) { LOG_E(PHY,"Received Timestamp doesn't correspond to the time we think it is (proc->tti_rx %d, subframe %d)\n",proc->tti_rx,*tti); - exit_fun("Exiting"); + if (!oai_exit) + exit_fun("Exiting"); + return; } if (proc->frame_rx != *frame) {