diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-03-03 15:48:40 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2019-02-14 17:55:43 +0100 |
commit | d868df52d67c91d4d24a30decbda35e59c79f7af (patch) | |
tree | 0d6831c38dc96f9fb5d48667e73d5a29c6d705b5 | |
parent | c6087dab92f9ba6ad47d6992e14c6efbedb611d1 (diff) |
UL TBF: Actually raise V(Q) in raise_v_q() method
So far the method only printed that it was raising V(Q) but never
actually did so. The increment statement was only in the log
statement, its result never store to the actual m_v_q member variable.
Change-Id: I699ebf6d1fceec655585e430711f59648b525728
-rw-r--r-- | src/rlc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp index ee88bd99..5c43304c 100644 --- a/src/rlc.cpp +++ b/src/rlc.cpp @@ -294,11 +294,13 @@ uint16_t gprs_rlc_ul_window::raise_v_q() uint16_t count = 0; while (v_q() != v_r()) { + uint16_t v_q_old; if (!m_v_n.is_received(v_q())) break; + v_q_old = v_q(); + set_v_q(mod_sns(v_q() + 1)); LOGP(DRLCMACUL, LOGL_DEBUG, "- Taking block %d out, raising " - "V(Q) to %d\n", v_q(), mod_sns(v_q() + 1)); - raise_v_q(1); + "V(Q) to %d\n", v_q_old, v_q()); count += 1; } |