diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-21 14:58:25 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-02-21 17:20:36 +0700 |
commit | 4bc4655bd64f191d402d5c176d92cd053d939deb (patch) | |
tree | 2cea9434d5ca9cb02140f86c0d667ce6d0326548 /src/host/trxcon/sched_lchan_common.c | |
parent | 947369922990195bccb59cae88cccbd7eefac9c8 (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_common.c')
-rw-r--r-- | src/host/trxcon/sched_lchan_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/trxcon/sched_lchan_common.c b/src/host/trxcon/sched_lchan_common.c index 921c466b..615d81c9 100644 --- a/src/host/trxcon/sched_lchan_common.c +++ b/src/host/trxcon/sched_lchan_common.c @@ -99,9 +99,9 @@ int sched_send_dt_ind(struct trx_instance *trx, struct trx_ts *ts, dl_hdr.num_biterr = bit_error_count; /* Convert average RSSI to RX level */ - if (lchan->meas.rssi_num) { + if (lchan->meas.num) { /* RX level: 0 .. 63 in typical GSM notation (dBm + 110) */ - dbm_avg = lchan->meas.rssi_sum / lchan->meas.rssi_num; + dbm_avg = lchan->meas.rssi_sum / lchan->meas.num; dl_hdr.rx_level = dbm2rxlev(dbm_avg); } else { /* No measurements, assuming the worst */ |