diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-27 16:58:46 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-27 20:00:16 +0100 |
commit | acefd0586e5d463b2e7a6a039131994bc12573fc (patch) | |
tree | 9d7b22f8a0453c4fb20d69835717a20db02e7a90 /src/common/scheduler.c | |
parent | c092f4e1ded65447061198ea1c57458becc71574 (diff) |
L1SAP: Increase resolution of reported burst timing
Before this patch we had:
* osmo-bts-trx internally using 1/256th bit/symbol period
* osmo-bts-sysmo internally using 1/4 bit/smbol period
* PCU interface using 1/4
* L1SAP interface using 1/4
* measurement processing code on top of L1SAP using 1/256
So for sysmo/lc15/octphy we are not loosing resolution, but for
osmo-bts-trx we're arbitrarily reducing the resolution via L1SAP
only then to compute with higher resolution again.
Let's change L1SAP to use 1/256 bits and hence not loose any resolution.
This requires a corresponding change in libosmocore for l1sap.h, which
is found in Change-Id Ibb58113c2819fe2d6d23ecbcfb8b3fce4055025d
Change-Id: If9b0f617845ba6c4aa47969f521734388197c9a7
Diffstat (limited to 'src/common/scheduler.c')
-rw-r--r-- | src/common/scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c index edd99d26..8c9d30d6 100644 --- a/src/common/scheduler.c +++ b/src/common/scheduler.c @@ -340,7 +340,7 @@ found_msg: int _sched_compose_ph_data_ind(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn, enum trx_chan_type chan, uint8_t *l2, uint8_t l2_len, float rssi, - int16_t ta_offs_qbits, int16_t link_qual_cb, + int16_t ta_offs_256bits, int16_t link_qual_cb, uint16_t ber10k, enum osmo_ph_pres_info_type presence_info) { @@ -359,7 +359,7 @@ int _sched_compose_ph_data_ind(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn, l1sap->u.data.fn = fn; l1sap->u.data.rssi = (int8_t) (rssi); l1sap->u.data.ber10k = ber10k; - l1sap->u.data.ta_offs_qbits = ta_offs_qbits; + l1sap->u.data.ta_offs_256bits = ta_offs_256bits; l1sap->u.data.lqual_cb = link_qual_cb; l1sap->u.data.pdch_presence_info = presence_info; msg->l2h = msgb_put(msg, l2_len); |