diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-18 14:35:11 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-05-21 17:11:14 +0200 |
commit | be0cbc1b7ede65ff6c5390905fc956d52a5d88b1 (patch) | |
tree | fa89219a82018fff5dcab50f461e1a255ce21a55 /tests/alloc/AllocTest.cpp | |
parent | 87597358cfe216a80405c21559ba640eedf44ad2 (diff) |
tbf: Explicitly pass the direction to update_ms()
The type of the TBF update_ms() is being called on does not always
reflect whether the TLLI has been signaled by the MS or the SGSN.
This commit adds an additional parameter to tell the method, in which
direction the TLLI has been passed.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/alloc/AllocTest.cpp')
-rw-r--r-- | tests/alloc/AllocTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index 3dc3e7ae..e453de6a 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -190,7 +190,7 @@ static void test_alloc_b(int ms_class) dl_tbf = tbf_alloc_dl_tbf(bts, NULL, tfi, trx_no, ms_class, 1); dl_tbf->m_tlli = 0x23; dl_tbf->m_tlli_valid = true; - dl_tbf->update_ms(dl_tbf->m_tlli); + dl_tbf->update_ms(dl_tbf->m_tlli, GPRS_RLCMAC_DL_TBF); OSMO_ASSERT(dl_tbf); dump_assignment(dl_tbf, "DL"); @@ -199,7 +199,7 @@ static void test_alloc_b(int ms_class) ul_tbf = tbf_alloc_ul_tbf(bts, dl_tbf, tfi, trx_no, ms_class, 0); ul_tbf->m_tlli = 0x23; ul_tbf->m_tlli_valid = true; - ul_tbf->update_ms(ul_tbf->m_tlli); + ul_tbf->update_ms(ul_tbf->m_tlli, GPRS_RLCMAC_UL_TBF); ul_tbf->m_contention_resolution_done = 1; OSMO_ASSERT(ul_tbf); dump_assignment(ul_tbf, "UL"); @@ -350,7 +350,7 @@ static void test_alloc_b(bool ts0, bool ts1, bool ts2, bool ts3, bool ts4, bool OSMO_ASSERT(dl_tbf); dl_tbf->m_tlli = 0x23; dl_tbf->m_tlli_valid = true; - dl_tbf->update_ms(dl_tbf->m_tlli); + dl_tbf->update_ms(dl_tbf->m_tlli, GPRS_RLCMAC_DL_TBF); tfi = the_bts.tfi_find_free(GPRS_RLCMAC_UL_TBF, &trx_no, -1); OSMO_ASSERT(tfi >= 0); @@ -358,7 +358,7 @@ static void test_alloc_b(bool ts0, bool ts1, bool ts2, bool ts3, bool ts4, bool OSMO_ASSERT(ul_tbf); ul_tbf->m_tlli = 0x23; ul_tbf->m_tlli_valid = true; - ul_tbf->update_ms(ul_tbf->m_tlli); + ul_tbf->update_ms(ul_tbf->m_tlli, GPRS_RLCMAC_UL_TBF); ul_tbf->m_contention_resolution_done = 1; OSMO_ASSERT(dl_tbf->first_common_ts == ul_tbf->first_common_ts); |