aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-16 16:22:02 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-17 17:16:44 +0100
commit050ace2fb47fc6b490a09512efbad4c902044dea (patch)
treed2465e155dda5db6589dc7f6aa8efdd402ccdbbb /src/gprs_rlcmac.cpp
parent570b44b29bf1186448e2838a537e1c2e250585fe (diff)
Introduce new file for various measurements
The measurements include: - DL bandwidth usage - DL packet loss rate - DL measurements by mobile - UL measurements by BTS In order to receive DL measurements from mobile, it must be enabled via system information message at BSC.
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, "+---------------+");