From bd5fa85ff1ed9a07e3eb540bb9a7b53bb21d6202 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joanne=20Hug=C3=A9?= <joanne.huge@nexedi.com>
Date: Tue, 1 Oct 2024 12:09:15 +0200
Subject: [PATCH] software/ors: publish current frequency

---
 software/ors-amarisoft/buildout.hash.cfg           | 2 +-
 software/ors-amarisoft/instance-ors-enb.jinja2.cfg | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/software/ors-amarisoft/buildout.hash.cfg b/software/ors-amarisoft/buildout.hash.cfg
index 963189801..7667d75d2 100644
--- a/software/ors-amarisoft/buildout.hash.cfg
+++ b/software/ors-amarisoft/buildout.hash.cfg
@@ -64,7 +64,7 @@ md5sum = be054d3312acd4ff5bea116e9af895b0
 
 [template-ors-enb]
 _update_hash_filename_ = instance-ors-enb.jinja2.cfg
-md5sum = 315633c8d09b84ef1c699094810c654a
+md5sum = 37295d2dfb453bdb860420c3a49ab916
 
 [template-ors-ue]
 _update_hash_filename_ = instance-ors-ue.jinja2.cfg
diff --git a/software/ors-amarisoft/instance-ors-enb.jinja2.cfg b/software/ors-amarisoft/instance-ors-enb.jinja2.cfg
index b75de4aa3..9153d16d1 100644
--- a/software/ors-amarisoft/instance-ors-enb.jinja2.cfg
+++ b/software/ors-amarisoft/instance-ors-enb.jinja2.cfg
@@ -230,10 +230,13 @@ current-tx-gain = {{ ors_version['current-tx-gain'] }}
 current-rx-gain = {{ ors_version['current-rx-gain'] }}
 
 {%- if enb_mode == 'enb'  %}
+current-frequency  = {{ xearfcn_module.frequency(ors_version['current-earfcn']) }} MHz
+current-band  = {{ xearfcn_module.band(ors_version['current-earfcn'])[0]["band"] }}
 current-earfcn  = {{ ors_version['current-earfcn'] }}
 {%- elif enb_mode == 'gnb' %}
-current-nr-arfcn = {{ ors_version['current-nr-arfcn'] }}
+current-frequency  = {{ xnrarfcn_module.frequency(ors_version['current-nr-arfcn']) }} MHz
 current-nr-band = {{ ors_version['current-nr-band'] }}
+current-nr-arfcn = {{ ors_version['current-nr-arfcn'] }}
 {%- endif %}
 
 
-- 
2.30.9