diff options
author | Max <msuraev@sysmocom.de> | 2018-01-30 16:56:43 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-02-27 22:27:52 +0100 |
commit | 4988bcbe2e8fb34a2c8dddc885e2c5bb15169a0e (patch) | |
tree | 9d74a8e78ca144f5ab005b05b245876e99b89c62 /src/tbf_dl.cpp | |
parent | 30b68e911a20f0a3e8bc625dcddba6457b2226de (diff) |
TBF: add helpers for assignment type handling
* add function to set/unset given assignment type
* log assignment type flag changes
* update tests output with additional logs
This enables us to carefully track the TBF assignment type transitions.
Change-Id: I3fe9d52472be8b7f257e8326b2f84e8e7d7bd1f4
Related: OS#1759
Diffstat (limited to 'src/tbf_dl.cpp')
-rw-r--r-- | src/tbf_dl.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 0587a4a6..dc4fa6ae 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -1104,9 +1104,7 @@ int gprs_rlcmac_dl_tbf::release() m_wait_confirm = 0; m_window.reset(); - /* keep to flags */ - state_flags &= GPRS_RLCMAC_FLAG_TO_MASK; - state_flags &= ~(1 << GPRS_RLCMAC_FLAG_CCCH); + TBF_ASS_TYPE_UNSET(this, GPRS_RLCMAC_FLAG_CCCH); return 0; } @@ -1132,9 +1130,7 @@ int gprs_rlcmac_dl_tbf::abort() /* reset rlc states */ m_window.reset(); - /* keep to flags */ - state_flags &= GPRS_RLCMAC_FLAG_TO_MASK; - state_flags &= ~(1 << GPRS_RLCMAC_FLAG_CCCH); + TBF_ASS_TYPE_UNSET(this, GPRS_RLCMAC_FLAG_CCCH); return 0; } |