From 7a16d46fdcad1df8c525f10ed344cd28d75292cc Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 4 Jan 2014 15:25:18 +0100 Subject: alloc_algorithm_b: Set tx_range to 8, if all 8 TS are supported by MS --- src/gprs_rlcmac_ts_alloc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp index a4e247a8..62d1dd18 100644 --- a/src/gprs_rlcmac_ts_alloc.cpp +++ b/src/gprs_rlcmac_ts_alloc.cpp @@ -378,6 +378,9 @@ static void tx_win_from_rx(const int ms_type, } *tx_range = (*tx_win_max - *tx_win_min + 1) & 7; + /* if TX window fills complete range */ + if (*tx_range == 0) + *tx_range = 8; LOGP(DRLCMAC, LOGL_DEBUG, "- TX-Window is: %d..%d\n", *tx_win_min, *tx_win_max); } -- cgit v1.2.3