diff options
authorPhilipp Maier <pmaier@sysmocom.de>2019-02-15 15:27:44 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2019-02-15 15:31:26 +0100
commitf54ae4f3653f997cc401b6044e531672988a56a4 (patch)
parentfa8b9e2aa3ba68bfe65f64f23bb60415ecdcffc4 (diff)
scheduler_trx: use stored fn for pdtch data indicationspmaier/first_fn2
When the ph-data indications for the PDTCH are passed up to l1sap, then a forumla is used to calculate the frame number of the beginning of the block that is just passed up. This is not necessary since the start frame number of the block is stored in *first_fn when the block arrives. We should use this frame number instead. (For the measurement indication it is already done this way). Change-Id: I6c01987be78203acfa689c6decb2c806f8fff3d6 Related: OS#2977
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index b395479b..32bdb98c 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -974,7 +974,7 @@ int rx_pdtch_fn(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn,
return 0;
ber10k = compute_ber10k(n_bits_total, n_errors);
- return _sched_compose_ph_data_ind(l1t, tn, (fn + GSM_HYPERFRAME - 3) % GSM_HYPERFRAME, chan,
+ return _sched_compose_ph_data_ind(l1t, tn, *first_fn, chan,
l2, rc, *rssi_sum / *rssi_num, *toa256_sum / *toa_num, 0,
ber10k, PRES_INFO_BOTH);