BTS_Tests: make TRX number configurable for ConnHdlr
This change allows running test cases against additional transceivers. Change-Id: Ifed3891658501e0a04ff89563d0a02f08211eed3 Related: SYS#4918
This commit is contained in:
parent
d0eb659fd2
commit
f54db11cbc
|
@ -300,6 +300,7 @@ friend type record FreqHopPars {
|
||||||
};
|
};
|
||||||
|
|
||||||
type record ConnHdlrPars {
|
type record ConnHdlrPars {
|
||||||
|
uint8_t trx_nr,
|
||||||
RslChannelNr chan_nr,
|
RslChannelNr chan_nr,
|
||||||
RSL_IE_ChannelMode chan_mode,
|
RSL_IE_ChannelMode chan_mode,
|
||||||
float t_guard,
|
float t_guard,
|
||||||
|
@ -733,7 +734,7 @@ runs on ConnHdlr {
|
||||||
g_Tguard.start(pars.t_guard);
|
g_Tguard.start(pars.t_guard);
|
||||||
activate(as_Tguard());
|
activate(as_Tguard());
|
||||||
|
|
||||||
f_rslem_register(0, pars.chan_nr);
|
f_rslem_register(pars.trx_nr, pars.chan_nr);
|
||||||
|
|
||||||
/* call the user-supplied test case function */
|
/* call the user-supplied test case function */
|
||||||
fn.apply(id);
|
fn.apply(id);
|
||||||
|
@ -797,7 +798,8 @@ friend function f_rsl_chan_deact() runs on ConnHdlr {
|
||||||
friend template ConnHdlrPars t_Pars(template RslChannelNr chan_nr,
|
friend template ConnHdlrPars t_Pars(template RslChannelNr chan_nr,
|
||||||
template RSL_IE_ChannelMode chan_mode,
|
template RSL_IE_ChannelMode chan_mode,
|
||||||
template (omit) TestSpecUnion spec := omit,
|
template (omit) TestSpecUnion spec := omit,
|
||||||
float t_guard := 20.0) := {
|
uint8_t trx_nr := 0, float t_guard := 20.0) := {
|
||||||
|
trx_nr := trx_nr,
|
||||||
chan_nr := valueof(chan_nr),
|
chan_nr := valueof(chan_nr),
|
||||||
chan_mode := valueof(chan_mode),
|
chan_mode := valueof(chan_mode),
|
||||||
t_guard := t_guard,
|
t_guard := t_guard,
|
||||||
|
@ -2220,8 +2222,9 @@ private function f_rach_req_wait_chan_rqd(integer ra) runs on ConnHdlr return Gs
|
||||||
/* Tune to a dedicated channel: L1CTL only */
|
/* Tune to a dedicated channel: L1CTL only */
|
||||||
private function f_l1ctl_est_dchan(L1CTL_PT pt, ConnHdlrPars pars) {
|
private function f_l1ctl_est_dchan(L1CTL_PT pt, ConnHdlrPars pars) {
|
||||||
if (not pars.fhp.enabled) {
|
if (not pars.fhp.enabled) {
|
||||||
|
var TrxParsItem trx_pars := mp_trx_pars[pars.trx_nr];
|
||||||
pt.send(ts_L1CTL_DM_EST_REQ_H0(pars.chan_nr, pars.tsc,
|
pt.send(ts_L1CTL_DM_EST_REQ_H0(pars.chan_nr, pars.tsc,
|
||||||
mp_trx_pars[0].arfcn));
|
trx_pars.arfcn));
|
||||||
} else {
|
} else {
|
||||||
pt.send(ts_L1CTL_DM_EST_REQ_H1(pars.chan_nr, pars.tsc,
|
pt.send(ts_L1CTL_DM_EST_REQ_H1(pars.chan_nr, pars.tsc,
|
||||||
pars.fhp.maio_hsn.hsn,
|
pars.fhp.maio_hsn.hsn,
|
||||||
|
@ -2241,7 +2244,8 @@ private function f_est_dchan(boolean encr_enable := false, RSL_IE_List more_ies
|
||||||
if (g_pars.fhp.enabled) {
|
if (g_pars.fhp.enabled) {
|
||||||
ch_desc := valueof(ts_ChanDescH1(g_pars.chan_nr, g_pars.fhp.maio_hsn, g_pars.tsc));
|
ch_desc := valueof(ts_ChanDescH1(g_pars.chan_nr, g_pars.fhp.maio_hsn, g_pars.tsc));
|
||||||
} else {
|
} else {
|
||||||
ch_desc := valueof(ts_ChanDescH0(g_pars.chan_nr, mp_trx_pars[0].arfcn, g_pars.tsc));
|
var TrxParsItem trx_pars := mp_trx_pars[g_pars.trx_nr];
|
||||||
|
ch_desc := valueof(ts_ChanDescH0(g_pars.chan_nr, trx_pars.arfcn, g_pars.tsc));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enable dedicated mode */
|
/* enable dedicated mode */
|
||||||
|
|
|
@ -43,7 +43,8 @@ function f_lapdm_exit() runs on lapdm_test_CT {
|
||||||
|
|
||||||
/* master function switching to a dedicated radio channel */
|
/* master function switching to a dedicated radio channel */
|
||||||
function f_switch_dcch() runs on ConnHdlr {
|
function f_switch_dcch() runs on ConnHdlr {
|
||||||
var GsmBandArfcn arfcn := valueof(ts_GsmBandArfcn(mp_trx_pars[0].arfcn));
|
var TrxParsItem trx_pars := mp_trx_pars[g_pars.trx_nr];
|
||||||
|
var GsmBandArfcn arfcn := valueof(ts_GsmBandArfcn(trx_pars.arfcn));
|
||||||
var BCCH_tune_req tune_req := { arfcn := arfcn, combined_ccch := true };
|
var BCCH_tune_req tune_req := { arfcn := arfcn, combined_ccch := true };
|
||||||
var DCCH_switch_req sw_req;
|
var DCCH_switch_req sw_req;
|
||||||
|
|
||||||
|
@ -55,7 +56,7 @@ function f_switch_dcch() runs on ConnHdlr {
|
||||||
sw_req.ma := g_pars.fhp.ma;
|
sw_req.ma := g_pars.fhp.ma;
|
||||||
} else {
|
} else {
|
||||||
sw_req.chan_desc := valueof(ts_ChanDescH0(g_pars.chan_nr,
|
sw_req.chan_desc := valueof(ts_ChanDescH0(g_pars.chan_nr,
|
||||||
mp_trx_pars[0].arfcn,
|
trx_pars.arfcn,
|
||||||
g_pars.tsc));
|
g_pars.tsc));
|
||||||
sw_req.ma := omit;
|
sw_req.ma := omit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue