Change in osmo-ttcn3-hacks[master]: BTS_Tests: compose the MA bitmask in f_resolve_fh_params()

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/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Aug 10 20:10:12 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19517 )

Change subject: BTS_Tests: compose the MA bitmask in f_resolve_fh_params()
......................................................................

BTS_Tests: compose the MA bitmask in f_resolve_fh_params()

Change-Id: Ic0a07d9deb60712347a42d9aa7813c684eaccd01
Related: SYS#4868, OS#4546
---
M bts/BTS_Tests.ttcn
1 file changed, 10 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index dfda043..8a9e24a 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -545,13 +545,21 @@
 		}
 
 		if (ispresent(pars.maio_hsn)) {
-			/* Compose the Mobile Allocation */
+			/* 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.ma := f_pad_bit('0'B, pars.ma_map.len * 8, '0'B);
+
+			/* Compose the actual Mobile Allocation and the bitmask */
 			for (j := 0; j < lengthof(g.trx_maio); j := j + 1) {
 				var FreqHopGroupItem gi := g.trx_maio[j];
 				pars.ma := pars.ma & { l1ctl_ma_def[gi.trx_nr] };
+				pars.ma_map.ma[gi.trx_nr] := '1'B;
 			}
 
-			log("Freq. hopping parameters: ", pars.maio_hsn, pars.ma);
+			log("Freq. hopping parameters: maio_hsn := ", pars.maio_hsn,
+			    ", ma := ", pars.ma, ", ma_map := ", pars.ma_map);
 			break; /* We're done */
 		}
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19517
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: Ic0a07d9deb60712347a42d9aa7813c684eaccd01
Gerrit-Change-Number: 19517
Gerrit-PatchSet: 5
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/20200810/7ed699d9/attachment.htm>


More information about the gerrit-log mailing list