Change in osmocom-bb[master]: trx_toolkit/fake_trx.py: move Rx burst handling to Transceiver

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Jul 12 12:54:07 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/19224 )


Change subject: trx_toolkit/fake_trx.py: move Rx burst handling to Transceiver
......................................................................

trx_toolkit/fake_trx.py: move Rx burst handling to Transceiver

Change-Id: Ic1f44bfb21ac3173e9530a0a9966cd5e64b8bd48
---
M src/target/trx_toolkit/fake_trx.py
M src/target/trx_toolkit/transceiver.py
2 files changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/24/19224/1

diff --git a/src/target/trx_toolkit/fake_trx.py b/src/target/trx_toolkit/fake_trx.py
index 82eb5b7..27c2b88 100755
--- a/src/target/trx_toolkit/fake_trx.py
+++ b/src/target/trx_toolkit/fake_trx.py
@@ -252,8 +252,7 @@
 		if src_trx.ta != 0:
 			msg.toa256 -= src_trx.ta * 256
 
-		# TODO: make legacy mode configurable (via argv?)
-		self.data_if.send_msg(msg, legacy = True)
+		Transceiver.handle_data_msg(self, msg)
 
 	# Simulation specific CTRL command handler
 	def ctrl_cmd_handler(self, request):
diff --git a/src/target/trx_toolkit/transceiver.py b/src/target/trx_toolkit/transceiver.py
index 655d4f6..474834d 100644
--- a/src/target/trx_toolkit/transceiver.py
+++ b/src/target/trx_toolkit/transceiver.py
@@ -276,3 +276,7 @@
 			return None
 
 		return msg
+
+	def handle_data_msg(self, msg):
+		# TODO: make legacy mode configurable (via argv?)
+		self.data_if.send_msg(msg, legacy = True)

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/19224
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ic1f44bfb21ac3173e9530a0a9966cd5e64b8bd48
Gerrit-Change-Number: 19224
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200712/a6b10246/attachment.htm>


More information about the gerrit-log mailing list