From 61585254338d16bb359987ad1f4537900e6288db Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 4 Nov 2020 13:31:41 +0000 Subject: part 3 of: fix SAPIs for handover, osmo-bts-trx Change-Id: I0b34855f0374e9ee7071ce14c1472eb3ead50970 --- src/common/scheduler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/scheduler.c b/src/common/scheduler.c index b61330d2..84918e31 100644 --- a/src/common/scheduler.c +++ b/src/common/scheduler.c @@ -858,6 +858,12 @@ static int rts_data_fn(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn, return -ENODEV; } + /* For handover detection, there are cases where the SACCH should remain inactive until the first RACH + * indicating the TA is received. */ + if (L1SAP_IS_LINK_SACCH(link_id) + && !l1t->ts[tn].chan_state[chan].lchan->want_dl_sacch_active) + return 0; + LOGL1S(DL1P, LOGL_DEBUG, l1t, tn, chan, fn, "PH-RTS.ind: chan_nr=0x%02x link_id=0x%02x\n", chan_nr, link_id); -- cgit v1.2.3