aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-09-02 22:24:11 +0200
committerlaforge <laforge@osmocom.org>2020-09-20 10:01:17 +0000
commit4db88de2fa559c436558866b83567a70a6ddaa50 (patch)
tree3cc490ad6df8fd70fec7eb25af2dde159126c52f
parent7d3b83ee9335f261124ac2c82603cd287d61765f (diff)
enb_srs: expose DL AWGN channel modifier for srsENBHEADmaster
we've added the modifier to configure Amarisoft eNB channel model. This patch enables it for srsENB. Change-Id: I30e65d0431b2d2792986128287caf8b23a22b2c1
-rw-r--r--src/osmo_gsm_tester/obj/enb_srs.py2
-rw-r--r--src/osmo_gsm_tester/templates/srsenb.conf.tmpl10
2 files changed, 11 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/obj/enb_srs.py b/src/osmo_gsm_tester/obj/enb_srs.py
index 7556f92..68a3a19 100644
--- a/src/osmo_gsm_tester/obj/enb_srs.py
+++ b/src/osmo_gsm_tester/obj/enb_srs.py
@@ -194,6 +194,8 @@ class srsENB(enb.eNodeB, srslte_common):
self.enable_pcap = util.str2bool(values['enb'].get('enable_pcap', 'false'))
config.overlay(values, dict(enb={'enable_pcap': self.enable_pcap}))
+ config.overlay(values, dict(enb={'enable_dl_awgn': util.str2bool(values['enb'].get('enable_dl_awgn', 'false'))}))
+
self._additional_args = []
for add_args in values['enb'].get('additional_args', []):
self._additional_args += add_args.split()
diff --git a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
index ac94313..7409b3a 100644
--- a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
+++ b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl
@@ -193,8 +193,16 @@ enable = false
# hst.fd_hz: Doppler frequency in Hz
# hst.init_time_s: Initial time in seconds
#####################################################################
+% if enb.enable_dl_awgn:
[channel.dl]
-#enable = false
+enable = true
+% endif
+
+% if enb.enable_dl_awgn:
+[channel.dl.awgn]
+enable = true
+snr = ${enb.dl_awgn_snr}
+% endif
[channel.dl.fading]
#enable = false