aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ms/MsTest.cpp6
-rw-r--r--tests/tbf/TbfTest.cpp8
2 files changed, 5 insertions, 9 deletions
diff --git a/tests/ms/MsTest.cpp b/tests/ms/MsTest.cpp
index b914f01b..d6c8f183 100644
--- a/tests/ms/MsTest.cpp
+++ b/tests/ms/MsTest.cpp
@@ -510,7 +510,7 @@ static void test_ms_cs_selection()
bts->initial_cs_dl = 4;
bts->initial_cs_ul = 1;
- bts->cs_downgrade_threshold = 0;
+ the_pcu->vty.cs_downgrade_threshold = 0;
the_pcu->vty.cs_adj_lower_limit = 0;
ms = ms_alloc(&the_bts, tlli);
@@ -525,7 +525,7 @@ static void test_ms_cs_selection()
OSMO_ASSERT(mcs_chan_code(ms_current_cs_dl(ms)) == 3);
- bts->cs_downgrade_threshold = 200;
+ the_pcu->vty.cs_downgrade_threshold = 200;
OSMO_ASSERT(mcs_chan_code(ms_current_cs_dl(ms)) == 2);
@@ -559,7 +559,7 @@ static void test_ms_mcs_mode()
bts->initial_cs_dl = 4;
bts->initial_cs_ul = 1;
- bts->cs_downgrade_threshold = 0;
+ the_pcu->vty.cs_downgrade_threshold = 0;
ms2 = ms_alloc(&the_bts, tlli + 1);
dump_ms(ms2, "2: with BTS defaults");
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 52403e19..75b51bf9 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -3070,13 +3070,11 @@ static void test_tbf_egprs_retx_dl(void)
{
the_pcu->bts = bts_alloc(the_pcu);
BTS *the_bts = the_pcu->bts;
- gprs_rlcmac_bts *bts;
uint8_t ts_no = 4;
fprintf(stderr, "=== start %s ===\n", __func__);
- bts = the_bts->bts_data();
- bts->cs_downgrade_threshold = 0;
+ the_pcu->vty.cs_downgrade_threshold = 0;
setup_bts(the_bts, ts_no);
OSMO_ASSERT(osmo_tdef_set(the_pcu->T_defs, -2031, 200, OSMO_TDEF_MS) == 0);
/* ARQ II */
@@ -3100,13 +3098,11 @@ static void test_tbf_egprs_spb_dl(void)
{
the_pcu->bts = bts_alloc(the_pcu);
BTS *the_bts = the_pcu->bts;
- gprs_rlcmac_bts *bts;
uint8_t ts_no = 4;
fprintf(stderr, "=== start %s ===\n", __func__);
- bts = the_bts->bts_data();
- bts->cs_downgrade_threshold = 0;
+ the_pcu->vty.cs_downgrade_threshold = 0;
setup_bts(the_bts, ts_no);
OSMO_ASSERT(osmo_tdef_set(the_pcu->T_defs, -2031, 200, OSMO_TDEF_MS) == 0);