aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gprs_rlcmac.cpp')
-rw-r--r--src/gprs_rlcmac.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp
index ff4cbddb..2c873172 100644
--- a/src/gprs_rlcmac.cpp
+++ b/src/gprs_rlcmac.cpp
@@ -384,7 +384,9 @@ next_diagram:
}
/* set timestamp */
- gettimeofday(&tbf->bw_tv, NULL);
+ gettimeofday(&tbf->meas.dl_bw_tv, NULL);
+ gettimeofday(&tbf->meas.rssi_tv, NULL);
+ gettimeofday(&tbf->meas.dl_loss_tv, NULL);
INIT_LLIST_HEAD(&tbf->llc_queue);
if (dir == GPRS_RLCMAC_UL_TBF)
@@ -914,6 +916,10 @@ void tbf_free(struct gprs_rlcmac_tbf *tbf)
{
struct msgb *msg;
+ /* Give final measurement report */
+ gprs_rlcmac_rssi_rep(tbf);
+ gprs_rlcmac_lost_rep(tbf);
+
debug_diagram(tbf->diag, "+---------------+");
debug_diagram(tbf->diag, "| THE END |");
debug_diagram(tbf->diag, "+---------------+");