aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-10-28 13:35:46 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-10-28 14:50:27 +0100
commit3d008ae837de2612e42db8607314debbe6dcc720 (patch)
tree72fd20bbede22087ce5b41f2ca4d78e473990cf2
parentf8e9be73b8a2d785968716a5eb7c0a7734583017 (diff)
bsc: Verify RSL IE MS Power Parameters is send upon CHAN ACT
-rw-r--r--bsc/MSC_ConnectionHandler.ttcn7
1 files changed, 7 insertions, 0 deletions
diff --git a/bsc/MSC_ConnectionHandler.ttcn b/bsc/MSC_ConnectionHandler.ttcn
index 57706c9e..40701d64 100644
--- a/bsc/MSC_ConnectionHandler.ttcn
+++ b/bsc/MSC_ConnectionHandler.ttcn
@@ -738,6 +738,8 @@ private template RSL_IE_Body tr_EncrInfo(template RSL_AlgId alg, template octets
/* ensure the RSL CHAN ACT (during assignment) contains values we expect depending on test case */
private function f_check_chan_act(AssignmentState st, RSL_Message chan_act) runs on MSC_ConnHdlr {
var RSL_IE_Body encr_info;
+ var RSL_IE_Body ms_power_param;
+
if (ispresent(g_pars.encr) and g_pars.encr.enc_alg != '01'O) {
if (not f_rsl_find_ie(chan_act, RSL_IE_ENCR_INFO, encr_info)) {
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Missing Encryption IE in CHAN ACT");
@@ -756,6 +758,11 @@ private function f_check_chan_act(AssignmentState st, RSL_Message chan_act) runs
}
/* FIXME: validate RSL_IE_ACT_TYPE, RSL_IE_CHAN_MODE, RSL_IE_CHAN_IDENT, RSL_IE_BS_POWER,
* RSL_IE_MS_POWER, RSL_IE_TIMING_ADVANCE */
+
+ if (not f_rsl_find_ie(chan_act, RSL_IE_MS_POWER_PARAM, ms_power_param)) {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "IE MS Power Parameters not found in CHAN ACT");
+ }
+
}
altstep as_assignment(inout AssignmentState st) runs on MSC_ConnHdlr {