BTS_Tests: use as_l1_exp_lapdm() in f_TC_rll_est_req()

Change-Id: Ic0ecef07385621e0f0fbdae67daad95ef628cdd5
Related: SYS#4895, OS#4941
This commit is contained in:
Vadim Yanitskiy 2021-06-01 01:22:24 +02:00
parent e6c175575a
commit 0310f63d81
1 changed files with 1 additions and 15 deletions

View File

@ -6324,21 +6324,7 @@ private function f_TC_rll_est_req(charstring id) runs on ConnHdlr {
RSL.send(ts_RSL_EST_REQ(g_chan_nr, tc.link_id));
T.start;
alt {
[] L1CTL.receive(tr_L1CTL_DATA_IND(g_chan_nr, ?)) -> value dl {
var LapdmFrame lapdm;
var octetstring l2 := dl.payload.data_ind.payload;
if (dl.dl_info.link_id.c == SACCH) {
/* remove L1 header */
l2 := substr(l2, 2, lengthof(l2)-2);
}
lapdm.ab := dec_LapdmFrameAB(l2);
if (match(lapdm, tr_LAPDm_SABM(tc.sapi, cr_MT_CMD, true, ''O))) {
setverdict(pass);
} else {
repeat;
}
}
[] L1CTL.receive { repeat; }
[] as_l1_exp_lapdm(tr_LAPDm_SABM(tc.sapi, cr_MT_CMD, true, ''O));
[] T.timeout {
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Timeout waiting for SABM");
}