diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-20 02:11:05 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-20 02:24:14 +0700 |
commit | 8fc43df69fe00c25a325ef6c5892f3b2cc389ed7 (patch) | |
tree | 3c77d3ec7e4ddbc5458c857c64406755a677f2f6 /bts/BTS_Tests.ttcn | |
parent | ac693462dd58e2b505252b6ab15d37664323e340 (diff) |
library/RSL_Types: reorder the arguments of ts_RSL_ChanMode_SIGN
This way it's consistent with ts_RSL_ChanMode, and there is
no need to pass dtx_downlink := false as the first param.
Change-Id: I0b87ef87f8cfff1c96b0beead29d549d5fe0b7c6
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r-- | bts/BTS_Tests.ttcn | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 1a6cca32..376a7d5a 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -3010,7 +3010,7 @@ testcase TC_meas_res_sign_tchf() runs on test_CT { var ConnHdlrPars pars; f_init(); for (var integer tn := 1; tn <= 4; tn := tn+1) { - pars := valueof(t_Pars(t_RslChanNr_Bm(tn), ts_RSL_ChanMode_SIGN(false, RSL_CHRT_TCH_F))); + pars := valueof(t_Pars(t_RslChanNr_Bm(tn), ts_RSL_ChanMode_SIGN(RSL_CHRT_TCH_F))); vc_conn := f_start_handler(refers(f_TC_meas_res_periodic), pars, pcu_comp := false, trxc_comp := true); vc_conn.done; @@ -3022,7 +3022,7 @@ testcase TC_meas_res_sign_tchh() runs on test_CT { var ConnHdlrPars pars; f_init(); for (var integer ss := 0; ss <= 1; ss := ss+1) { - pars := valueof(t_Pars(t_RslChanNr_Lm(5, ss), ts_RSL_ChanMode_SIGN(false, RSL_CHRT_TCH_H))); + pars := valueof(t_Pars(t_RslChanNr_Lm(5, ss), ts_RSL_ChanMode_SIGN(RSL_CHRT_TCH_H))); vc_conn := f_start_handler(refers(f_TC_meas_res_periodic), pars, pcu_comp := false, trxc_comp := true); vc_conn.done; @@ -3059,7 +3059,7 @@ testcase TC_meas_res_sign_tchh_toa256() runs on test_CT { f_init(); f_vty_config(BTSVTY, "bts 0", "supp-meas-info toa256"); for (var integer ss := 0; ss <= 1; ss := ss+1) { - pars := valueof(t_Pars(t_RslChanNr_Lm(5, ss), ts_RSL_ChanMode_SIGN(false, RSL_CHRT_TCH_H))); + pars := valueof(t_Pars(t_RslChanNr_Lm(5, ss), ts_RSL_ChanMode_SIGN(RSL_CHRT_TCH_H))); pars.l1_pars.toa256_enabled := true; vc_conn := f_start_handler(refers(f_TC_meas_res_periodic), pars); vc_conn.done; @@ -6514,7 +6514,7 @@ private function f_TC_rsl_modify_encr(charstring id) runs on ConnHdlr { f_unitdata_mo(link_id, l3); var RSL_Message rsl; - rsl := valueof(ts_RSL_MODE_MODIFY_REQ(g_chan_nr, valueof(ts_RSL_ChanMode_SIGN(false)))); + rsl := valueof(ts_RSL_MODE_MODIFY_REQ(g_chan_nr, ts_RSL_ChanMode_SIGN)); /* modify key to break proper encryption */ g_pars.encr.key := f_rnd_octstring(8); @@ -6833,12 +6833,14 @@ private function f_TC_tch_sign_l2_fill_frame_dtxd(charstring id) runs on ConnHdl } private function f_tch_sign_l2_fill_frame(boolean dtxd) runs on test_CT { + var template RSL_IE_ChannelMode ch_mode; var ConnHdlr vc_conn; var ConnHdlrPars pars; pars.t_guard := 60.0; f_init(); + ch_mode := ts_RSL_ChanMode_SIGN(dtx_downlink := dtxd); for (var integer i := 0; i < sizeof(g_AllChannels); i := i + 1) { - pars := valueof(t_Pars(g_AllChannels[i], ts_RSL_ChanMode_SIGN(dtxd))); + pars := valueof(t_Pars(g_AllChannels[i], ch_mode)); if (dtxd) { if (i >= 4) { /* DTX is only allowed on TCH/F */ break; |