BTS_Tests: Add support for PCUIF protocol version 11

The PCUIF protocol version 11 uses a more distinct (direct TLLI) way
to signal PAGING COMMAND and IMMEDIATE ASSIGNMENT messages towards the PCU.

Since OsmoBTS will soon fully support v.11 of the PCUIF protocol we need
to add compatibility in the OsmoBTS TTCN3 testsuite early. We also have
to stay compatible with older versions of OsmoBTS. The BTS_Tests.default
config still sets up mp_pcuif_version to version 10, so this will be the
default until we have full version 11 support in current master and
latest.

Related: OS#5927
Change-Id: I08de02e951e10bc8b4381cc2ad32e63f2747e3c4
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index fddfcca..f59cc89 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -5812,8 +5812,17 @@
 	f_l1_tune(L1CTL);
 
 	f_TC_pcu_act_req(0, 0, 7, true);
-	/* three characters prefix: last 3 digits of IMSI as ASCII */
-	f_pcu_data_req(0, 0, 7, 0, 0, PCU_IF_SAPI_PCH, '313233'O & c_PCU_DATA);
+
+	if (mp_pcuif_version < 11) {
+		/* three characters prefix: last 3 digits of IMSI as ASCII */
+		f_pcu_data_req(0, 0, 7, 0, 0, PCU_IF_SAPI_PCH, '313233'O & c_PCU_DATA);
+	} else {
+		var PCUIF_pch_dt pch_dt;
+		pch_dt.tlli := '01020304'O;
+		pch_dt.imsi := "00101000000000123";
+		pch_dt.data := c_PCU_DATA;
+		f_pcu_data_req(0, 0, 7, 0, 0, PCU_IF_SAPI_PCH_DT, enc_PCUIF_pch_dt(pch_dt));
+	}
 
 	T.start;
 	alt {