summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-12 17:24:16 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commit07b4268239937a8e90560983cd67d7250d8fac54 (patch)
tree4054036d305fb0df1ffc890adb87015663331811
parent663dce62608205c56d2bca4717fd9640753c0dc3 (diff)
fake_trx/burst_fwd.py: append two unused bytes at the end
-rw-r--r--src/target/fake_trx/burst_fwd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/fake_trx/burst_fwd.py b/src/target/fake_trx/burst_fwd.py
index d822747..161710c 100644
--- a/src/target/fake_trx/burst_fwd.py
+++ b/src/target/fake_trx/burst_fwd.py
@@ -50,6 +50,9 @@ class BurstForwarder:
for i in range(8, length):
payload[i] = 255 if payload[i] else 0
+ # WTF: append two unused bytes at the end
+ payload[length:2] = [0x00, 0x00]
+
return payload
# Downlink handler: BTS -> BB