diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-14 14:30:03 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-01-18 11:54:57 +0100 |
commit | 519d071131ca1235d5ba525040dab4cbe357fa92 (patch) | |
tree | 9390557d84067a6305ea93a0d710c458266a5f68 /tests | |
parent | 47f15fb6fd599bac4fd87993e1d6f79acfebeed6 (diff) |
Move ws_* fields from BTS to PCU
Change-Id: I997bc52f0d924c8f2a0b1d6cf23af98828ad4258
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tbf/TbfTest.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index 66e344e1..1b852015 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -1749,7 +1749,6 @@ static void test_tbf_egprs_two_phase_puan(void) uint32_t tlli = 0xf1223344; const char *imsi = "0011223344"; uint8_t ms_class = 1; - gprs_rlcmac_bts *bts; uint8_t egprs_ms_class = 1; gprs_rlcmac_ul_tbf *ul_tbf; uint8_t test_data[256]; @@ -1760,9 +1759,8 @@ static void test_tbf_egprs_two_phase_puan(void) setup_bts(the_bts, ts_no, 4); the_bts->bts_data()->initial_mcs_dl = 9; - bts = the_bts->bts_data(); - bts->ws_base = 128; - bts->ws_pdch = 64; + the_pcu->vty.ws_base = 128; + the_pcu->vty.ws_pdch = 64; ul_tbf = establish_ul_tbf(the_bts, ts_no, tlli, &fn, qta, ms_class, egprs_ms_class); /* Function to generate URBB with no length */ @@ -1782,8 +1780,8 @@ static void test_tbf_egprs_two_phase_puan(void) static_cast<gprs_rlc_ul_window *>(ul_tbf->window())->reset_state(); /* Function to generate CRBB */ - bts->ws_base = 128; - bts->ws_pdch = 64; + the_pcu->vty.ws_base = 128; + the_pcu->vty.ws_pdch = 64; ul_tbf = establish_ul_tbf_two_phase_puan_CRBB(the_bts, ts_no, tlli, &fn, qta, ms_class, egprs_ms_class); @@ -2288,8 +2286,8 @@ static void test_tbf_ws() setup_bts(the_bts, ts_no); - bts->ws_base = 128; - bts->ws_pdch = 64; + the_pcu->vty.ws_base = 128; + the_pcu->vty.ws_pdch = 64; the_pcu->alloc_algorithm = alloc_algorithm_b; bts->trx[0].pdch[2].enable(); bts->trx[0].pdch[3].enable(); @@ -2336,8 +2334,8 @@ static void test_tbf_update_ws(void) setup_bts(the_bts, ts_no); - bts->ws_base = 128; - bts->ws_pdch = 64; + the_pcu->vty.ws_base = 128; + the_pcu->vty.ws_pdch = 64; the_pcu->alloc_algorithm = alloc_algorithm_b; bts->trx[0].pdch[2].enable(); bts->trx[0].pdch[3].enable(); |