aboutsummaryrefslogtreecommitdiffstats
path: root/pcu
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-13 15:13:49 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-05-13 15:13:49 +0200
commit4aac3d0c8ffac98ecb70dece740a4be65311a164 (patch)
tree1f5fe4e6eefa16be5640700b0ca79f2d3d00e698 /pcu
parentb58d974ea57938b9060df599cdb031bca285b543 (diff)
pcu: Properly pass tlli in f_tx_rlcmac_ul_n_blocks()
Diffstat (limited to 'pcu')
-rw-r--r--pcu/PCU_Tests.ttcn23
1 files changed, 14 insertions, 9 deletions
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index a232a7f2..efb7d94e 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -503,7 +503,7 @@ runs on RAW_PCU_Test_CT {
f_pcuif_tx_data_ind(data, lqual_cb, fn);
}
-private function f_tx_rlcmac_ul_n_blocks(PacketUlAssign ul_tbf_ass, integer num_blocks := 1)
+private function f_tx_rlcmac_ul_n_blocks(PacketUlAssign ul_tbf_ass, integer num_blocks := 1, template (omit) GprsTlli tlli := omit)
runs on RAW_PCU_Test_CT {
var template (value) RlcmacUlBlock ul_data := t_RLCMAC_UL_DATA(
tfi := ul_tbf_ass.dynamic.tfi_assignment,
@@ -511,8 +511,10 @@ runs on RAW_PCU_Test_CT {
bsn := 0, /* TODO: what should be here? */
blocks := { /* To be generated in loop */ });
- /* HACK: patch missing TLLI; otherwise OsmoPCU rejects DATA.req */
- ul_data.data.tlli := '00000001'O;
+ if (not istemplatekind(tlli, "omit")) {
+ ul_data.data.mac_hdr.tlli_ind := true;
+ ul_data.data.tlli := tlli;
+ }
for (var integer i := 0; i < num_blocks; i := i + 1) {
/* Prepare a new UL block (CV, random payload) */
@@ -1295,8 +1297,9 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
/* Make sure we've got an Uplink TBF assignment */
f_imm_ass_verify_ul_tbf_ass(rr_imm_ass, ul_tbf_ass);
- /* Send one UL block and make sure it is ACKED fine */
- f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1);
+ /* Send one UL block (with TLLI since we are in One-Phase Access
+ contention resoultion) and make sure it is ACKED fine */
+ f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1, tlli);
f_rx_rlcmac_dl_block_exp_ack_nack(dl_block, unused_fn);
/* UL block should be received in SGSN */
BSSGP[0].receive(tr_BSSGP_UL_UD(tlli, mp_gb_cfg.cell_id));
@@ -1417,8 +1420,9 @@ private function f_TC_mo_ping_pong(template (omit) MSRadioAccessCapabilityV ms_r
}
}
- /* Send one UL block and make sure it is ACKED fine */
- f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1);
+ /* Send one UL block (with TLLI since we are in One-Phase Access
+ contention resoultion) and make sure it is ACKED fine */
+ f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1, tlli);
f_rx_rlcmac_dl_block_exp_ack_nack(dl_block, sched_fn);
/* DL ACK/NACK sets poll+rrbp requesting PACKET CONTROL ACK */
f_tx_rlcmac_ul_block(ts_RLCMAC_CTRL_ACK(tlli), 0, sched_fn);
@@ -1517,8 +1521,9 @@ private function f_TC_mt_ping_pong(template (omit) MSRadioAccessCapabilityV_BSSG
/* Make sure we've got an Uplink TBF assignment */
f_imm_ass_verify_ul_tbf_ass(rr_imm_ass, ul_tbf_ass);
- /* Send one UL block and make sure it is ACKED fine */
- f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1);
+ /* Send one UL block (with TLLI since we are in One-Phase Access
+ contention resoultion) and make sure it is ACKED fine */
+ f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1, tlli);
f_rx_rlcmac_dl_block_exp_ack_nack(dl_block, sched_fn);
/* DL ACK/NACK sets poll+rrbp requesting PACKET CONTROL ACK */
f_tx_rlcmac_ul_block(ts_RLCMAC_CTRL_ACK(tlli), 0, sched_fn);