aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/scheduler_trx.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-07-07 20:08:29 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-07-21 21:55:51 +0700
commit4ff47ff39a70b89d1bc0f1ae6ecfb95b0007ec9b (patch)
treed2f5b9c455e8fb83ad5347d2897a56d3bed4de0d /src/osmo-bts-trx/scheduler_trx.c
parentb777c0f3ecb8b770f032db449e947f0f9731de11 (diff)
osmo-bts-trx/scheduler: rx_rach_fn(): provide actual C/I ratio to L1SAP
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index ec1d8320..8144956f 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -826,8 +826,10 @@ int rx_rach_fn(struct l1sched_trx *l1t, enum trx_chan_type chan,
/* Link quality is defined by C/I (Carrier-to-Interference ratio),
* which has optional presence. If it's absent, report the
* minimum acceptable value to pass L1SAP checks. */
- /* TODO: check for TRX_BI_F_CI_CB, and use the value from UL.ind */
- l1sap.u.rach_ind.lqual_cb = l1t->trx->bts->min_qual_rach;
+ if (bi->flags & TRX_BI_F_CI_CB)
+ l1sap.u.rach_ind.lqual_cb = bi->ci_cb;
+ else
+ l1sap.u.rach_ind.lqual_cb = l1t->trx->bts->min_qual_rach;
/* Decode RACH depending on its synch. sequence */
switch (synch_seq) {