summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/sched_lchan_tchh.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-21 14:58:25 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-02-21 17:20:36 +0700
commit4bc4655bd64f191d402d5c176d92cd053d939deb (patch)
tree2cea9434d5ca9cb02140f86c0d667ce6d0326548 /src/host/trxcon/sched_lchan_tchh.c
parent947369922990195bccb59cae88cccbd7eefac9c8 (diff)
trxcon/scheduler: count number of measurements
Instead of counting both RSSI and ToA measurements separately, let's have a single counter in trx_lchan_state.meas struct. Change-Id: I45454a3ac92b8cc85dd74092e4ab6eb350f20c9a
Diffstat (limited to 'src/host/trxcon/sched_lchan_tchh.c')
-rw-r--r--src/host/trxcon/sched_lchan_tchh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/host/trxcon/sched_lchan_tchh.c b/src/host/trxcon/sched_lchan_tchh.c
index 5b7daa3d..172f54b4 100644
--- a/src/host/trxcon/sched_lchan_tchh.c
+++ b/src/host/trxcon/sched_lchan_tchh.c
@@ -243,8 +243,7 @@ int rx_tchh_fn(struct trx_instance *trx, struct trx_ts *ts,
*/
lchan->meas.rssi_sum += rssi;
lchan->meas.toa256_sum += toa256;
- lchan->meas.rssi_num++;
- lchan->meas.toa256_num++;
+ lchan->meas.num++;
/* Copy burst to the end of buffer of 6 bursts */
offset = buffer + bid * 116 + 464;