From 3ee09a47c1d8f8dde35f35290a5f657bbfb77a6b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 30 Sep 2018 14:57:19 +0200 Subject: sysmo, virtual: properly handle BS-AG-BLKS-RES as received from BSC Change-Id: Ifd9a3be6189b3288526e12260d68a982b089404e --- src/osmo-bts-virtual/scheduler_virtbts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/osmo-bts-virtual/scheduler_virtbts.c') diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c index 997ccbc2..2248afc5 100644 --- a/src/osmo-bts-virtual/scheduler_virtbts.c +++ b/src/osmo-bts-virtual/scheduler_virtbts.c @@ -79,7 +79,8 @@ static void tx_to_virt_um(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn, timeslot = tn; /* in Osmocom, AGCH is only sent on ccch block 0. no idea why. this seems to cause false GSMTAP channel * types for agch and pch. */ - if (rsl_chantype == RSL_CHAN_PCH_AGCH && l1sap_fn2ccch_block(fn) == 0) + if (rsl_chantype == RSL_CHAN_PCH_AGCH && + l1sap_fn2ccch_block(fn) >= num_agch(l1t->trx, "PH-DATA-REQ")) gsmtap_chantype = GSMTAP_CHANNEL_PCH; else gsmtap_chantype = chantype_rsl2gsmtap(rsl_chantype, chdesc->link_id); /* the logical channel type */ -- cgit v1.2.3