diff options
author | Max <msuraev@sysmocom.de> | 2016-07-18 12:50:18 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-09-09 06:37:04 +0000 |
commit | 9bbe1600cc02e1b538380393edb1dcdabe9247a2 (patch) | |
tree | 2f129366b22e1c5148f958522320bcdf524041e8 /tests/tbf/TbfTest.cpp | |
parent | 16ddc90eabad423d247753f7d89639659e049d35 (diff) |
Fix Timing Advance handling
* initialize with invalid TA instead of making assumption that phone is
located within 550 meters (TA=0)
* only set valid TA
Change-Id: Idfc40ff0c11bdac13d9e28fbfa4e95dfc6b735b0
Related: OS#1526
Diffstat (limited to 'tests/tbf/TbfTest.cpp')
-rw-r--r-- | tests/tbf/TbfTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index ca5a3c8..cdf8ff4 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -181,6 +181,7 @@ static gprs_rlcmac_dl_tbf *create_dl_tbf(BTS *the_bts, uint8_t ms_class, tfi = the_bts->tfi_find_free(GPRS_RLCMAC_DL_TBF, &trx_no, -1); OSMO_ASSERT(tfi >= 0); dl_tbf = tbf_alloc_dl_tbf(bts, NULL, trx_no, ms_class, egprs_ms_class, 1); + dl_tbf->set_ta(0); check_tbf(dl_tbf); /* "Establish" the DL TBF */ @@ -505,6 +506,7 @@ static void test_tbf_dl_llc_loss() ms = the_bts.ms_store().get_ms(0, 0, imsi); OSMO_ASSERT(ms != NULL); OSMO_ASSERT(ms->dl_tbf() != NULL); + ms->dl_tbf()->set_ta(0); /* Handle LLC frame 2 */ memset(buf, 2, sizeof(buf)); |