aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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