diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-07 20:00:53 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-21 21:55:51 +0700 |
commit | b777c0f3ecb8b770f032db449e947f0f9731de11 (patch) | |
tree | ba1e306cae248c4171b3b2e98e63904b4e3f9770 /src/osmo-bts-trx/scheduler_trx.c | |
parent | 9649a42d5a3c24a21c14bb9f54e7c34a398da7b1 (diff) |
Move Access Burst link quality handling to L1SAP
Change-Id: I893ec9c6c2ebad71ea68b2dc5f9f5094dfc43b78
Depends: (libosmocore) Ie2a66ebd040b61d6daf49e04bf8a84d3d64764ee
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r-- | src/osmo-bts-trx/scheduler_trx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index 79e42e10..ec1d8320 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -823,6 +823,12 @@ int rx_rach_fn(struct l1sched_trx *l1t, enum trx_chan_type chan, l1sap.u.rach_ind.rssi = bi->rssi; l1sap.u.rach_ind.fn = bi->fn; + /* 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; + /* Decode RACH depending on its synch. sequence */ switch (synch_seq) { case RACH_SYNCH_SEQ_TS1: |