summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-30 15:31:07 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-11-06 14:20:37 +0100
commit745a48bce3b42bd4c0b590716f25470341d9b07b (patch)
tree6cac770ba31db2f8623d05efaf90d3f2ee2134f1 /library
parenta9f27fa4f69d209cb3b832416fb7203630f292dc (diff)
pcu: prepare tests for new GPRS/EGPRS multiplex support
Once GPRS/EGPRS multiplexed support is ready, it will be controlled through pcu info_ind.flags by enabling MCS or not; the "egprs only" VTY comamnd will be dropped. The usual setup would be to support both GPRS+EGPRS, so make that the default. Most tests require to be passed the _noMCS variant to work in older versions of PCU, since those versions use the "egprs only" concept which will reject egprs_ms_class=0. Same tests enabling MCS in newer osmo-pcu shouldn't be a problem. Related: OS#4544 Change-Id: Ib95aae155b0712313a30f0c5404a8cb1f28b98f5
Diffstat (limited to 'library')
-rw-r--r--library/PCUIF_Types.ttcn26
1 files changed, 26 insertions, 0 deletions
diff --git a/library/PCUIF_Types.ttcn b/library/PCUIF_Types.ttcn
index a7a32ab..d6e0867 100644
--- a/library/PCUIF_Types.ttcn
+++ b/library/PCUIF_Types.ttcn
@@ -749,6 +749,32 @@ const PCUIF_Flags c_PCUIF_Flags_default := {
spare2 := '000'B
};
+const PCUIF_Flags c_PCUIF_Flags_noMCS := {
+ bts_active := true,
+ sysmo_direct_dsp := false,
+ spare := '00000000000000'B,
+ cs1 := true,
+ cs2 := true,
+ cs3 := true,
+ cs4 := true,
+ mcs1 := false,
+ mcs2 := false,
+ mcs3 := false,
+ mcs4 := false,
+ mcs5 := false,
+ mcs6 := false,
+ mcs7 := false,
+ mcs8 := false,
+ mcs9 := false,
+ spare2 := '000'B
+};
+
+function f_pcuif_ind_flags_egprs_enabled(PCUIF_Flags flags) return boolean {
+ return flags.mcs1 or flags.mcs2 or flags.mcs3 or flags.mcs4 or
+ flags.mcs5 or flags.mcs6 or flags.mcs7 or flags.mcs8 or
+ flags.mcs9;
+}
+
template (value) PCUIF_InfoTrxTs ts_PCUIF_InfoTrxTsH0(template (value) uint3_t tsc := 7) := {
tsc := tsc,
hopping := 0,