diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-06-26 13:52:08 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-06-29 14:42:33 +0200 |
commit | 6a12271b2e5a2e5b61c94b46e34ffa74427e3f0d (patch) | |
tree | 1c040c3359be401d6862bf27a92133e86a1cf5aa | |
parent | 5f3177eb414632e140675ea8eac9bf5af38cc1b2 (diff) |
Avoid using UL TBF in RELEASE state to assign DL TBF over PACCH
In RELEASE state, the UL TBF is considered not available anymore, and we
are simply waiting in order to be able to reuse the allocated resources
(just in case it was still around). Hence, a UL TBF in that state should
not be selectable to initiate a DL TBF assignment over PACCH.
Related: OS#5472
Change-Id: Ia11f7802779cfeea15a71bddad9f7e0c6c1afb11
-rw-r--r-- | src/gprs_ms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gprs_ms.c b/src/gprs_ms.c index dda2f290..06d012c0 100644 --- a/src/gprs_ms.c +++ b/src/gprs_ms.c @@ -1106,7 +1106,8 @@ static bool ms_is_reachable_for_dl_ass(const struct GprsMs *ms) if (!ul_tbf) return true; if (ul_tbf_contention_resolution_done(ul_tbf) && - !tbf_ul_ack_waiting_cnf_final_ack(ul_tbf)) + !tbf_ul_ack_waiting_cnf_final_ack(ul_tbf) && + tbf_state(ul_tbf_as_tbf(ul_tbf)) != TBF_ST_RELEASING) return true; return false; |