aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf_dl.cpp
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-07-10 14:40:09 +0200
committerMax <msuraev@sysmocom.de>2017-08-14 15:19:08 +0000
commitf60cf62f4fca3ee0f3803ecc0b7e87b35d74d9f3 (patch)
treed3077982c72c0386d41bbe3fbfb350b437a4fe72 /src/tbf_dl.cpp
parenta10c39866b4b6e5515b1ceb35b15955226679eb3 (diff)
Simplify polling troubleshooting
* introduce enum describing poll kind and use it in set_polling() * move state change into set_polling() * move logging into set_polling() and unify output * move duplicated code into static function * adjust tests to match unified logging output Change-Id: I14074207f8bbc18b3ebd60875bb99a0a3a4b399d Related: OS#1524
Diffstat (limited to 'src/tbf_dl.cpp')
-rw-r--r--src/tbf_dl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 8ce13a72..b350720f 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -853,10 +853,8 @@ struct msgb *gprs_rlcmac_dl_tbf::create_dl_acked_block(
rc = check_polling(fn, ts, &new_poll_fn, &rrbp);
if (rc >= 0) {
- set_polling(new_poll_fn, ts);
+ set_polling(new_poll_fn, ts, GPRS_RLCMAC_POLL_DL_ACK);
- LOGP(DRLCMACDL, LOGL_DEBUG, "Polling scheduled in this "
- "TS %d\n", ts);
m_tx_counter = 0;
/* start timer whenever we send the final block */
if (is_final)