BTS_Tests/SMSCB: establish a dedicated channel in f_smscb_setup()

Change-Id: I3f061a4d48209b1aa5eaea2fd05fc4752de0c70f
This commit is contained in:
Vadim Yanitskiy 2020-07-31 06:43:57 +07:00
parent ffcd128f10
commit f1c95c8b1c
1 changed files with 11 additions and 2 deletions

View File

@ -243,8 +243,17 @@ private function f_smscb_setup(inout CbchTestPars pars) runs on test_CT {
f_init();
f_init_l1ctl();
f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED_CBCH);
/* FIXME: switch to dedicated mode for SDCCH/8 */
/* Tune L1 to the given CBCH timeslot (SDCCH4+CBCH or SDCCH8+CBCH) */
if (match(pars.chan_nr, t_RslChanNr_CBCH4(0))) {
f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED_CBCH);
} else {
f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED);
/* TODO: also handle frequency hopping parameters */
L1CTL.send(ts_L1CTL_DM_EST_REQ_H0(pars.chan_nr,
7 /* TODO: mp_tsc */,
mp_trx0_arfcn));
}
/* send SMSCB[s] via RSL */
f_smscb_setup_rsl_chan(pars.basic, false);