From 08ad45ad5ea28d863775299188b95bc76b2d0ae0 Mon Sep 17 00:00:00 2001
From: francescomani <email@francescomani.it>
Date: Thu, 28 Mar 2024 14:59:19 +0100
Subject: [PATCH] remove band number information from gNB log to configure UE
 via command line parameter

---
 doc/RUNMODEM.md                           | 4 ++--
 openair1/SCHED_NR/phy_procedures_nr_gNB.c | 6 ++----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/doc/RUNMODEM.md b/doc/RUNMODEM.md
index d6f504af1b..a85f0d9b0c 100644
--- a/doc/RUNMODEM.md
+++ b/doc/RUNMODEM.md
@@ -102,10 +102,10 @@ Command line parameters for UE in `--sa` mode:
 - `--band` : NR band number (default value 78)
 - `--ssb` : SSB start subcarrier (default value 516)
 
-To simplify the configuration for the user testing OAI UE with OAI gNB, the latter prints the following LOG that guides the user to correctly set the UE command line parameters.
+To simplify the configuration for the user testing OAI UE with OAI gNB, the latter prints the following LOG that guides the user to correctly set some of the UE command line parameters.
 
 ```
-[PHY]   Command line parameters for the UE: -C 3319680000 -r 106 --numerology 1 --band 78 --ssb 516
+[PHY]   Command line parameters for the UE: -C 3319680000 -r 106 --numerology 1 --ssb 516
 ```
 
 You can run this, using USRPs, on two separate machines:
diff --git a/openair1/SCHED_NR/phy_procedures_nr_gNB.c b/openair1/SCHED_NR/phy_procedures_nr_gNB.c
index 0a348e9c03..547207b1f6 100644
--- a/openair1/SCHED_NR/phy_procedures_nr_gNB.c
+++ b/openair1/SCHED_NR/phy_procedures_nr_gNB.c
@@ -81,20 +81,18 @@ void nr_common_signal_procedures(PHY_VARS_gNB *gNB,int frame,int slot, nfapi_nr_
     fp->print_ue_help_cmdline_log = false;
     if (fp->dl_CarrierFreq != fp->ul_CarrierFreq)
       LOG_A(PHY,
-            "Command line parameters for the UE: -C %lu --CO %lu -r %d --numerology %d --band %d --ssb %d\n",
+            "Command line parameters for the UE: -C %lu --CO %lu -r %d --numerology %d --ssb %d\n",
             fp->dl_CarrierFreq,
             fp->dl_CarrierFreq - fp->ul_CarrierFreq,
             fp->N_RB_DL,
             scs,
-            fp->nr_band,
             fp->ssb_start_subcarrier);
     else
       LOG_A(PHY,
-            "Command line parameters for the UE: -C %lu -r %d --numerology %d --band %d --ssb %d\n",
+            "Command line parameters for the UE: -C %lu -r %d --numerology %d --ssb %d\n",
             fp->dl_CarrierFreq,
             fp->N_RB_DL,
             scs,
-            fp->nr_band,
             fp->ssb_start_subcarrier);
   }
   LOG_D(PHY,
-- 
2.26.2