summaryrefslogtreecommitdiffstats
path: root/src/target
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-24 11:40:34 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-07-02 13:48:06 +0700
commit62825cc8eb4e26d58d32a0af72b17256b185af61 (patch)
tree62de9ea73dea5689a12e5b4e8d86e3b71c55249a /src/target
parentdce8a24a2c82f6e36c44bca318f741848caa5ad4 (diff)
trx_toolkit/data_msg.py: legacy flag is only for version 0x00
Since version 0x01, the burst bits are encoded as L16V, so appending two dummy octets doesn't make sense. Change-Id: I4d6c0bf54649d636ea6cb3fa2f37486b6619d5b3
Diffstat (limited to 'src/target')
-rw-r--r--src/target/trx_toolkit/data_msg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/data_msg.py b/src/target/trx_toolkit/data_msg.py
index a2996ab..e946229 100644
--- a/src/target/trx_toolkit/data_msg.py
+++ b/src/target/trx_toolkit/data_msg.py
@@ -271,7 +271,7 @@ class DATAMSG:
# This is a rudiment from (legacy) OpenBTS transceiver,
# some L1 implementations still expect two dummy bytes.
- if legacy:
+ if legacy and self.ver == 0x00:
buf += bytearray(2)
return buf