This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19252 ) Change subject: library/GSM_RR_Types: share send templates for ChannelDescription ...................................................................... library/GSM_RR_Types: share send templates for ChannelDescription They're going to be used in other modules too, not only in BTS_Tests. Also, take a chance to rearrange the list of arguments, so the ones with default values are placed after mandatory ones. Change-Id: Ia33ebf2e680f16f774a981fc33422dfe5036637f --- M bts/BTS_Tests.ttcn M library/GSM_RR_Types.ttcn 2 files changed, 23 insertions(+), 23 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, but someone else must approve laforge: Looks good to me, approved diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 47f8a29..1582fae 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -2005,9 +2005,9 @@ /* Craft channel description (with or without frequency hopping parameters) */ if (ispresent(g_pars.maio_hsn)) { - ch_desc := valueof(ts_ChanDescH1(g_pars.chan_nr, maio_hsn := g_pars.maio_hsn)); + ch_desc := valueof(ts_ChanDescH1(g_pars.chan_nr, g_pars.maio_hsn)); } else { - ch_desc := valueof(ts_ChanDescH0(g_pars.chan_nr)); + ch_desc := valueof(ts_ChanDescH0(g_pars.chan_nr, mp_trx0_arfcn)); } /* Send IMM.ASS via CCHAN */ @@ -3476,26 +3476,6 @@ ma := ''B } -private template (value) ChannelDescription ts_ChanDescH0(template (value) RslChannelNr chan_nr, - template (value) uint3_t tsc := 7, - template (value) uint12_t arfcn := mp_trx0_arfcn) := { - chan_nr := chan_nr, - tsc := tsc, - h := false, - arfcn := arfcn, - maio_hsn := omit -} - -private template (value) ChannelDescription ts_ChanDescH1(template (value) RslChannelNr chan_nr, - template (value) uint3_t tsc := 7, - template (value) MaioHsn maio_hsn) := { - chan_nr := chan_nr, - tsc := tsc, - h := true, - arfcn := omit, - maio_hsn := maio_hsn -} - private function f_fmt_ia_stats(integer num_tx, integer num_rx, integer num_del) return charstring { return int2str(num_tx) & " sent, " & int2str(num_rx) & " received, " @@ -3516,7 +3496,7 @@ f_l1_tune(L1CTL); for (var integer i := 0; i < num_total; i := i+1) { - var ChannelDescription ch_desc := valueof(ts_ChanDescH0(valueof(t_RslChanNr_SDCCH4(0, 0)))); + var ChannelDescription ch_desc := valueof(ts_ChanDescH0(t_RslChanNr_SDCCH4(0, 0), mp_trx0_arfcn)); var GsmRrMessage ia := valueof(ts_IMM_ASS(42, i, 5, ch_desc, c_MA_null)); var octetstring ia_enc := enc_GsmRrMessage(ia); RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_IMM_ASSIGN(ia_enc, 0))); diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn index d0d5d8e..bf650b2 100644 --- a/library/GSM_RR_Types.ttcn +++ b/library/GSM_RR_Types.ttcn @@ -1082,4 +1082,24 @@ ext_ra := ext_ra }; + template (value) ChannelDescription ts_ChanDescH0(template (value) RslChannelNr chan_nr, + template (value) uint12_t arfcn, + template (value) uint3_t tsc := 7) := { + chan_nr := chan_nr, + tsc := tsc, + h := false, + arfcn := arfcn, + maio_hsn := omit + } + + template (value) ChannelDescription ts_ChanDescH1(template (value) RslChannelNr chan_nr, + template (value) MaioHsn maio_hsn, + template (value) uint3_t tsc := 7) := { + chan_nr := chan_nr, + tsc := tsc, + h := true, + arfcn := omit, + maio_hsn := maio_hsn + } + } with { encode "RAW" ; variant "FIELDORDER(msb)" } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19252 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ia33ebf2e680f16f774a981fc33422dfe5036637f Gerrit-Change-Number: 19252 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200714/06b74d6b/attachment.htm>