diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2014-01-04 15:25:18 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2014-01-04 15:52:00 +0100 |
commit | 92acbaaaa24cbcfb83cc6109e8e825007839f5ad (patch) | |
tree | 187140bc5c21493513302d2956842e56c0807493 | |
parent | 315576fa1a703722da7c8c726f757c842e010106 (diff) |
alloc_algorithm_b: Set tx_range to 8, if all 8 TS are supported by MS
-rw-r--r-- | src/gprs_rlcmac_ts_alloc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |