diff options
Diffstat (limited to 'src/host/trxcon/sched_lchan_rach.c')
-rw-r--r-- | src/host/trxcon/sched_lchan_rach.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/host/trxcon/sched_lchan_rach.c b/src/host/trxcon/sched_lchan_rach.c index 5d1f3ab9..fe5821ba 100644 --- a/src/host/trxcon/sched_lchan_rach.c +++ b/src/host/trxcon/sched_lchan_rach.c @@ -2,7 +2,7 @@ * OsmocomBB <-> SDR connection bridge * TDMA scheduler: handlers for DL / UL bursts on logical channels * - * (C) 2017 by Vadim Yanitskiy <axilirator@gmail.com> + * (C) 2017-2019 by Vadim Yanitskiy <axilirator@gmail.com> * * All Rights Reserved * @@ -174,6 +174,12 @@ int tx_rach_fn(struct trx_instance *trx, struct trx_ts *ts, /* Confirm RACH request */ l1ctl_tx_rach_conf(trx->l1l, trx->band_arfcn, fn); + /* Optional GSMTAP logging */ + sched_gsmtap_send(lchan->type, fn, ts->index, + trx->band_arfcn | ARFCN_UPLINK, 0, 0, + PRIM_IS_RACH11(lchan->prim) ? (uint8_t *) &ext_req->ra11 : &req->ra, + PRIM_IS_RACH11(lchan->prim) ? 2 : 1); + /* Forget processed primitive */ sched_prim_drop(lchan); |