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 uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20100 ) Change subject: BTS_Tests: simplify MA length calculation in f_resolve_fh_params() ...................................................................... BTS_Tests: simplify MA length calculation in f_resolve_fh_params() Change-Id: I13f1d45162b520eff0d2e9823604fda85b71970b Related: SYS#4868, OS#4708 --- M bts/BTS_Tests.ttcn 1 file changed, 1 insertion(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/00/20100/1 diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 58b2213..ac781f6 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -547,9 +547,7 @@ if (ispresent(pars.maio_hsn)) { /* Prepare the Mobile Allocation bitmask (length & padding) */ - pars.ma_map.len := mp_transceiver_num / 8; - if (mp_transceiver_num mod 8 > 0) - { pars.ma_map.len := pars.ma_map.len + 1; } + pars.ma_map.len := (mp_transceiver_num + 8 - 1) / 8; /* in bytes */ pars.ma_map.ma := f_pad_bit('0'B, pars.ma_map.len * 8, '0'B); /* Compose the actual Mobile Allocation and the bitmask */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20100 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: I13f1d45162b520eff0d2e9823604fda85b71970b Gerrit-Change-Number: 20100 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200912/eb9d17fb/attachment.htm>