aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_sched.cpp
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-05-18 16:43:10 +0200
committerHolger Freyther <holger@freyther.de>2016-05-21 17:59:37 +0000
commit2cb154799353c4af6ced5ef5270a7b925d12ad51 (patch)
tree4089a84f50bcb9a5a4d1283815a64d87ed513768 /src/gprs_rlcmac_sched.cpp
parent9736d00b12fea82fb4c9b8dc47b7ce452660554c (diff)
introduce new counter rlc_sent_dummy
rlc_sent_dummy count the amount of dummy package which are sent in case no data packet is in the queue. Change-Id: Ia60eab853d9145980f30d63e4ce4b520b8c51381 Reviewed-on: https://gerrit.osmocom.org/85 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
Diffstat (limited to 'src/gprs_rlcmac_sched.cpp')
-rw-r--r--src/gprs_rlcmac_sched.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gprs_rlcmac_sched.cpp b/src/gprs_rlcmac_sched.cpp
index 8e05623f..087c03ca 100644
--- a/src/gprs_rlcmac_sched.cpp
+++ b/src/gprs_rlcmac_sched.cpp
@@ -348,8 +348,12 @@ int gprs_rlcmac_rcv_rts_block(struct gprs_rlcmac_bts *bts,
}
/* Prio 3: send dummy contol message */
- if (!msg)
+ if (!msg) {
+ /* increase counter */
msg = sched_dummy();
+ if (msg)
+ bts->bts->rlc_sent_dummy();
+ }
if (!msg)
return -ENOMEM;