diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index fc714fe19..462e2d547 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -584,7 +584,8 @@ friend function f_resolve_fh_params(inout FreqHopPars fhp, uint8_t tn, /* 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]; - fhp.ma := fhp.ma & { l1ctl_ma_def[gi.trx_nr] }; + var GsmArfcn arfcn := c_arfcn_list[gi.trx_nr]; + fhp.ma := fhp.ma & { { false, arfcn } }; fhp.ma_map.ma[gi.trx_nr] := '1'B; } @@ -725,9 +726,11 @@ friend function f_rsl_chan_deact() runs on ConnHdlr { "RF CHAN REL", true); } -/* Default Mobile Allocation to be used for frequency hopping */ -private const L1ctlMA l1ctl_ma_def := { { false, mp_trx0_arfcn }, { false, mp_trx1_arfcn }, - { false, mp_trx2_arfcn }, { false, mp_trx3_arfcn } }; +/* TODO: move this to module parameters */ +private const GsmArfcn c_arfcn_list[4] := { + mp_trx0_arfcn, mp_trx1_arfcn, + mp_trx2_arfcn, mp_trx3_arfcn +}; friend template ConnHdlrPars t_Pars(template RslChannelNr chan_nr, template RSL_IE_ChannelMode chan_mode, @@ -761,7 +764,7 @@ friend template ConnHdlrPars t_Pars(template RslChannelNr chan_nr, enabled := false, maio_hsn := ts_HsnMaio(0, 0), ma_map := c_MA_null, - ma := l1ctl_ma_def + ma := { } } }