aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf_ul.cpp
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-24 11:00:17 +0100
committerMax <msuraev@sysmocom.de>2018-01-24 11:06:55 +0100
commitcac6b666381d5766d49694b1bce8baf275bbe9e1 (patch)
treecacdbf49c3e64dd76e5115223ac68750d74b0063 /src/tbf_ul.cpp
parent088c7df571e3044b286200cc112e7e24b2751491 (diff)
TBF: make poll state internal
* add functions/macros for setting TBF's poll state * add function for checking TBF's poll state Change-Id: I6db1c4e7bd0a49aeb5e391afe371c36b96c6a702 Related: OS#1539
Diffstat (limited to 'src/tbf_ul.cpp')
-rw-r--r--src/tbf_ul.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tbf_ul.cpp b/src/tbf_ul.cpp
index c1a3388c..1560eb03 100644
--- a/src/tbf_ul.cpp
+++ b/src/tbf_ul.cpp
@@ -123,8 +123,7 @@ struct msgb *gprs_rlcmac_ul_tbf::create_ul_ack(uint32_t fn, uint8_t ts)
uint32_t new_poll_fn = 0;
if (final) {
- if (poll_state == GPRS_RLCMAC_POLL_SCHED &&
- ul_ack_state_is(GPRS_RLCMAC_UL_ACK_WAIT_ACK)) {
+ if (poll_scheduled() && ul_ack_state_is(GPRS_RLCMAC_UL_ACK_WAIT_ACK)) {
LOGPTBFUL(this, LOGL_DEBUG,
"Polling is already scheduled, so we must wait for the final uplink ack...\n");
return NULL;