aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-28 19:58:17 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-10-29 12:38:17 +0100
commit758ace867b73bd81dbcf9667824893c4b31e2ae7 (patch)
tree61e795e8aefab2ba350d41f02c18b2c6a1ddab5e /tests
parent16705a4db14f290cfee6afe23fbf6184ef8041e0 (diff)
tbf_dl: Update (egprs_)ms_class for already known MS
If SGSN provides us with MS class information upon DL data, let's use it and set it in an already existing MS object if not yet known. Also remove all unneeded code passing ms_class to append_data() which would simply try to (again) set the ms_class. Change-Id: I4979c9344bffd3ba7657bbab94981d233eab801f
Diffstat (limited to 'tests')
-rw-r--r--tests/tbf/TbfTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 04e711c..096b071 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -277,8 +277,8 @@ static void test_tbf_final_ack(enum test_tbf_final_ack_mode test_mode)
llc_data[i] = i%256;
/* Schedule two LLC frames */
- dl_tbf->append_data(ms_class, 1000, llc_data, sizeof(llc_data));
- dl_tbf->append_data(ms_class, 1000, llc_data, sizeof(llc_data));
+ dl_tbf->append_data(1000, llc_data, sizeof(llc_data));
+ dl_tbf->append_data(1000, llc_data, sizeof(llc_data));
/* Send only a few RLC/MAC blocks */
@@ -362,8 +362,8 @@ static void test_tbf_delayed_release()
OSMO_ASSERT(dl_tbf->state_is(GPRS_RLCMAC_FLOW));
/* Schedule two LLC frames */
- dl_tbf->append_data(ms_class, 1000, llc_data, sizeof(llc_data));
- dl_tbf->append_data(ms_class, 1000, llc_data, sizeof(llc_data));
+ dl_tbf->append_data(1000, llc_data, sizeof(llc_data));
+ dl_tbf->append_data(1000, llc_data, sizeof(llc_data));
OSMO_ASSERT(dl_tbf->state_is(GPRS_RLCMAC_FLOW));
@@ -2668,7 +2668,7 @@ static void establish_and_use_egprs_dl_tbf(BTS *the_bts, int mcs)
OSMO_ASSERT(dl_tbf->state_is(GPRS_RLCMAC_FLOW));
/* Schedule a small LLC frame */
- dl_tbf->append_data(ms_class, 1000, test_data, 10);
+ dl_tbf->append_data(1000, test_data, 10);
OSMO_ASSERT(dl_tbf->state_is(GPRS_RLCMAC_FLOW));
@@ -2678,7 +2678,7 @@ static void establish_and_use_egprs_dl_tbf(BTS *the_bts, int mcs)
request_dl_rlc_block(dl_tbf, &fn);
/* Schedule a large LLC frame */
- dl_tbf->append_data(ms_class, 1000, test_data, sizeof(test_data));
+ dl_tbf->append_data(1000, test_data, sizeof(test_data));
OSMO_ASSERT(dl_tbf->state_is(GPRS_RLCMAC_FLOW));
@@ -2726,7 +2726,7 @@ static gprs_rlcmac_dl_tbf *tbf_init(BTS *the_bts,
* 2 RLC data blocks. Which are enough to test Header Type 1
* cases
*/
- dl_tbf->append_data(ms_class, 1000, test_data, 100);
+ dl_tbf->append_data(1000, test_data, 100);
OSMO_ASSERT(dl_tbf->state_is(GPRS_RLCMAC_FLOW));