diff options
author | Max <msuraev@sysmocom.de> | 2017-07-10 14:40:09 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-08-14 15:19:08 +0000 |
commit | f60cf62f4fca3ee0f3803ecc0b7e87b35d74d9f3 (patch) | |
tree | d3077982c72c0386d41bbe3fbfb350b437a4fe72 /src/tbf_ul.cpp | |
parent | a10c39866b4b6e5515b1ceb35b15955226679eb3 (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_ul.cpp')
-rw-r--r-- | src/tbf_ul.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tbf_ul.cpp b/src/tbf_ul.cpp index 1e0898a4..81d3b24a 100644 --- a/src/tbf_ul.cpp +++ b/src/tbf_ul.cpp @@ -158,9 +158,8 @@ struct msgb *gprs_rlcmac_ul_tbf::create_ul_ack(uint32_t fn, uint8_t ts) m_contention_resolution_done = 1; if (final) { - set_polling(new_poll_fn, ts); + set_polling(new_poll_fn, ts, GPRS_RLCMAC_POLL_UL_ACK); /* waiting for final acknowledge */ - ul_ack_state = GPRS_RLCMAC_UL_ACK_WAIT_ACK; m_final_ack_sent = 1; } else ul_ack_state = GPRS_RLCMAC_UL_ACK_NONE; |