aboutsummaryrefslogtreecommitdiffstats
path: root/bts
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-03 15:51:58 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-09 20:03:38 +0700
commit4fa7425b14cf92ddfb53bd14307d91623dceb7b6 (patch)
tree66501b817ff16f5dced4b857187f698fa02c2b8d /bts
parent94fe83e8ab242e42d1d7f9058c3f445e07c0e9c3 (diff)
BTS_Tests: compose the MA bitmask in f_resolve_fh_params()
Diffstat (limited to 'bts')
-rw-r--r--bts/BTS_Tests.ttcn12
1 files changed, 10 insertions, 2 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index dfda0437..8a9e24a0 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -545,13 +545,21 @@ friend function f_resolve_fh_params(inout ConnHdlrPars pars, uint8_t trx_nr := 0
}
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 */
}
}