aboutsummaryrefslogtreecommitdiffstats
path: root/bts
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2024-03-11 03:13:18 +0700
committerfixeria <vyanitskiy@sysmocom.de>2024-03-18 16:41:17 +0000
commit3d4b001513724daf9de7ec4d1c54183ae9eb0c63 (patch)
treecc5743806fe2e4340c3008f2bdf5ebdf69f21b99 /bts
parent7e6b832b856e1c8fe6f3224da09198d372392cbe (diff)
bts: dequeue L1CTL {DATA,TRAFFIC}.cnf in as_l1_{sacch,dcch,tcp}_loop()
This fixes sporadic failures in testcases using those altsteps. Change-Id: I3538d40ff1a585ccbe37f3a90f3c374c5f0b5767 Related: osmocom-bb.git I0046f9c103bcb9207f0c2643c6a806bd56553d77
Diffstat (limited to 'bts')
-rw-r--r--bts/BTS_Tests.ttcn6
1 files changed, 6 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 05a33499..0103bbc8 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -2190,6 +2190,8 @@ private altstep as_l1_sacch_loop() runs on ConnHdlr {
L1CTL.send(ts_L1CTL_DATA_REQ_SACCH(g_chan_nr, ts_RslLinkID_SACCH(0), l1h, l2));
repeat;
}
+ /* dequeue (ignore) L1CTL DATA.cnf for UL SACCH (SAPI=0) */
+ [] L1CTL.receive(tr_L1CTL_DATA_CONF(g_chan_nr, tr_RslLinkID_SACCH(0))) { repeat; }
}
/* handle incoming downlink SACCH, decode the L1 header into the given record */
@@ -2220,6 +2222,8 @@ private altstep as_l1_dcch_loop() runs on ConnHdlr {
f_pad_oct(pl, 23, '2B'O)));
repeat;
}
+ /* dequeue (ignore) L1CTL DATA.cnf for UL DCCH (SAPI=0) */
+ [] L1CTL.receive(tr_L1CTL_DATA_CONF(g_chan_nr, tr_RslLinkID_DCCH(0))) { repeat; }
}
private altstep as_l1_tch_loop() runs on ConnHdlr {
@@ -2240,6 +2244,8 @@ private altstep as_l1_tch_loop() runs on ConnHdlr {
repeat;
}
+ /* dequeue (ignore) L1CTL TRAFFIC.cnf for UL TCH */
+ [] L1CTL.receive(tr_L1CTL_TRAFFIC_CONF(g_chan_nr, tr_RslLinkID_DCCH(0))) { repeat; }
}
private type record MeasElem {