diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-27 19:39:24 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-27 20:00:16 +0100 |
commit | 916d508bf6312acbc29a3e3575151b9bc7bc66d2 (patch) | |
tree | 59dff5255e8c3e7f15d4949568ac86b0ba9222a8 /src | |
parent | acefd0586e5d463b2e7a6a039131994bc12573fc (diff) |
measurement: Keep average of high-accurate ToA value in lchan
At the end of a measurement processing window, we currently compute
the ToA / timing offset at 1/256th symbol accuracy, but we only print
it to the log. Let's store the value in the lchan to make it usable
by other code in follow-up patches.
Change-Id: I5f00a16ac966b627d9452a98b8fa70984bed684a
Diffstat (limited to 'src')
-rw-r--r-- | src/common/measurement.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/measurement.c b/src/common/measurement.c index bdb28508..ba7494a1 100644 --- a/src/common/measurement.c +++ b/src/common/measurement.c @@ -399,6 +399,7 @@ int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn) mru->sub.rx_lev = dbm2rxlev((int)irssi_sub_sum * -1); mru->full.rx_qual = ber10k_to_rxqual(ber_full_sum); mru->sub.rx_qual = ber10k_to_rxqual(ber_sub_sum); + lchan->meas.ms_toa256 = ta256b_sum; LOGP(DMEAS, LOGL_INFO, "%s UL MEAS RXLEV_FULL(%u), RXLEV_SUB(%u)," "RXQUAL_FULL(%u), RXQUAL_SUB(%u), num_meas_sub(%u), num_ul_meas(%u) \n", |