summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-28 23:59:45 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-01 11:50:22 +0100
commit380dc7e768c944ab0efc28f24205334a4c736a42 (patch)
tree41a42e78f9a7a243eb382306027c9d43407675c9
parentcc447afe3475a60c4745206ee219e20aa60494bd (diff)
fake_trx: Increase TOA256 value ranges
In theory, the maximum TA value is 63 symbols, i.e. 63*256 in this context. However, our test cases want to test the BTS behavior is correct if ever a larger timing offset is reported from TRX to the BTS, to ensure it is rejected in the BTS. Let's hence increase the values to rather large min/max limits. We could also remove them completely. Change-Id: I691d081256e8c6d18ef2836299ed8f7d502da3ee
-rw-r--r--src/target/fake_trx/data_msg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/fake_trx/data_msg.py b/src/target/fake_trx/data_msg.py
index 5f93187a..a48eff7c 100644
--- a/src/target/fake_trx/data_msg.py
+++ b/src/target/fake_trx/data_msg.py
@@ -304,8 +304,8 @@ class DATAMSG_TRX2L1(DATAMSG):
RSSI_MAX = -50
# TODO: verify this range
- TOA256_MIN = -256 * 10
- TOA256_MAX = 256 * 10
+ TOA256_MIN = -256 * 200
+ TOA256_MAX = 256 * 200
# Specific message fields
rssi = None