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/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/6832
fake_trx/burst_send.py: handle both GSM and EDGE bursts
Previously, it was expected that burst length should be equal
to 148. Let's also handle EDGE bursts and use GSM constants.
Change-Id: Iab13dd06f175556137c5e25d2cbddb9bea403b09
---
M src/target/fake_trx/burst_send.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/32/6832/1
diff --git a/src/target/fake_trx/burst_send.py b/src/target/fake_trx/burst_send.py
index 7367925..b51ce5d 100755
--- a/src/target/fake_trx/burst_send.py
+++ b/src/target/fake_trx/burst_send.py
@@ -96,8 +96,8 @@
burst = []
# Check length
- if len(burst_str) != 148:
- print("[!] Dropping burst due to length != 148")
+ if len(burst_str) not in (GSM_BURST_LEN, EDGE_BURST_LEN):
+ print("[!] Dropping burst due to incorrect length")
continue
# Randomize the message header
--
To view, visit https://gerrit.osmocom.org/6832
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab13dd06f175556137c5e25d2cbddb9bea403b09
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>