rfemu_srsenb_stdin: use negative dB value to set attenuation
the logic for the RF emulator on the command line is, like the
Amarisoft equivalent, to set a negative gain value to express
attenuation. Therefore, the sign needs to be inverted.
Change-Id: I7b6ac611a9f711bbdc1570602bfd797a5346ab86
diff --git a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
index ca23020..e4aec19 100644
--- a/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
+++ b/src/osmo_gsm_tester/obj/rfemu_srsenb_stdin.py
@@ -42,7 +42,7 @@
# PUBLIC (test API included)
#############################
def set_attenuation(self, db):
- msg_str = 'cell_gain %d %f' % (self.cell_id, db)
+ msg_str = 'cell_gain %d %f' % (self.cell_id, -db)
self.dbg('sending stdin msg: "%s"' % msg_str)
self.enb.process.stdin_write(msg_str + '\n')