diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-11-03 20:35:00 +0000 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-11-09 10:52:52 +0000 |
commit | d34681bc6b31e316a599561cfafe16c9c83f3a5a (patch) | |
tree | 4267036cbfc64fc8d07578be90920a96edf779e0 /bts/BTS_Tests.ttcn | |
parent | 5f14421b6f6e5f1332e9c342e50fc6194539d80a (diff) |
bts: fix TC_sacch_chan_act_ho_*: missing Handover Reference IE
The tests still fail, but at least not as prematurely as before.
Change-Id: I3f58ed30f7f2e92d2d1694769a4214a6d257f8a9
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r-- | bts/BTS_Tests.ttcn | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index a2394a0b..c73981d9 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -1238,8 +1238,15 @@ private function f_TC_sacch_chan_act_ho_async(charstring id) runs on ConnHdlr { /* Step 1: Activate ASYNC HO channel without MS power IE */ + var integer ho_ref := oct2int(f_rnd_octstring(1)); + var RSL_IE ho_ref_ie := valueof(t_RSL_IE(RSL_IE_HANDO_REF, + RSL_IE_Body:{ handover_ref := ho_ref })); + var RSL_IE_List addl_ies := { + ho_ref_ie + }; + /* Activate channel on BTS side */ - f_rsl_chan_act(g_pars.chan_mode, act_type := t_RSL_IE_ActType_HO_ASYNC); + f_rsl_chan_act(g_pars.chan_mode, more_ies := addl_ies, act_type := t_RSL_IE_ActType_HO_ASYNC); /* don't perform immediate assignment here, as we're testing non-IA case */ /* enable dedicated mode */ f_l1ctl_est_dchan(L1CTL, g_pars); @@ -1254,7 +1261,8 @@ private function f_TC_sacch_chan_act_ho_async(charstring id) runs on ConnHdlr { /* Step 2: Activate ASYNC HO channel with MS power IE */ /* Activate channel on BTS side */ - var RSL_IE_List addl_ies := { + addl_ies := { + ho_ref_ie, valueof(t_RSL_IE(RSL_IE_MS_POWER, RSL_IE_Body:{ms_power := ts_RSL_IE_MS_Power(0)})) }; f_rsl_chan_act(g_pars.chan_mode, more_ies := addl_ies, act_type := t_RSL_IE_ActType_HO_ASYNC); @@ -1294,8 +1302,15 @@ private function f_TC_sacch_chan_act_ho_sync(charstring id) runs on ConnHdlr { /* Step 1: Activate SYNC HO channel without MS power IE */ + var integer ho_ref := oct2int(f_rnd_octstring(1)); + var RSL_IE ho_ref_ie := valueof(t_RSL_IE(RSL_IE_HANDO_REF, + RSL_IE_Body:{ handover_ref := ho_ref })); + addl_ies := { + ho_ref_ie + }; + /* Activate channel on BTS side */ - f_rsl_chan_act(g_pars.chan_mode, act_type := t_RSL_IE_ActType_HO_SYNC); + f_rsl_chan_act(g_pars.chan_mode, more_ies := addl_ies, act_type := t_RSL_IE_ActType_HO_SYNC); /* don't perform immediate assignment here, as we're testing non-IA case */ /* enable dedicated mode */ f_l1ctl_est_dchan(L1CTL, g_pars); @@ -1311,6 +1326,7 @@ private function f_TC_sacch_chan_act_ho_sync(charstring id) runs on ConnHdlr { /* Activate channel on BTS side */ addl_ies := { + ho_ref_ie, valueof(t_RSL_IE(RSL_IE_MS_POWER, RSL_IE_Body:{ms_power := ts_RSL_IE_MS_Power(0)})) }; f_rsl_chan_act(g_pars.chan_mode, more_ies := addl_ies, act_type := t_RSL_IE_ActType_HO_SYNC); @@ -1329,6 +1345,7 @@ private function f_TC_sacch_chan_act_ho_sync(charstring id) runs on ConnHdlr { /* Activate channel on BTS side */ addl_ies := { + ho_ref_ie, valueof(t_RSL_IE(RSL_IE_TIMING_ADVANCE, RSL_IE_Body:{timing_adv := 0})) }; f_rsl_chan_act(g_pars.chan_mode, more_ies := addl_ies, act_type := t_RSL_IE_ActType_HO_SYNC); @@ -1347,6 +1364,7 @@ private function f_TC_sacch_chan_act_ho_sync(charstring id) runs on ConnHdlr { /* Activate channel on BTS side */ addl_ies := { + ho_ref_ie, valueof(t_RSL_IE(RSL_IE_TIMING_ADVANCE, RSL_IE_Body:{timing_adv := 0})), valueof(t_RSL_IE(RSL_IE_MS_POWER, RSL_IE_Body:{ms_power := ts_RSL_IE_MS_Power(0)})) }; |