bsc: Verify RSL IE MS Power Parameters is send upon CHAN ACT

Depends: osmo-bsc.git Icaaa61b363b093f00b6653c3df64d3e66583b9f8
Related: OS#1622
Change-Id: I2ecf03bbab169f9fda4e4a61d233d6a30b2a91b9
This commit is contained in:
Pau Espin 2019-10-28 13:35:46 +01:00
parent f8e9be73b8
commit 3d008ae837
1 changed files with 7 additions and 0 deletions

View File

@ -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 {